Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Android Studio keeps complaining AndroidManifest.xml error #24

Open
harryhow opened this issue Dec 10, 2015 · 7 comments
Open

Android Studio keeps complaining AndroidManifest.xml error #24

harryhow opened this issue Dec 10, 2015 · 7 comments

Comments

@harryhow
Copy link

When I import project file to Android Studio (v2.0) and keep seeing this error.
Any hint?

screen shot 2015-12-10 at 1 45 30 pm

@mashbridge
Copy link
Contributor

are you importing as an existing project, or trying to import it into something else? it has to be as an existing project.

if not, have you edited anything? under "android application" where you have "Android Beacon" i think it should just say "app". (the string "Android Beacon" doesn't appear anywhere in the source which makes me think it's something you've changed.)

@harryhow
Copy link
Author

Yes, i'm importing existing project. I added 'Android Beacon' because of when I Run -> Run 'App', I see this

screen shot 2015-12-10 at 3 31 37 pm

It looks like I have to add a configuration in order to build, so that I add 'Android Application' under the name of 'Android Beacon'. This is where I showed you.

I also tried to start over again, clone a new repo from here and re-import from the existing project. Still no luck, thanks for helping out.

@mashbridge
Copy link
Contributor

What version of android studio are you using?

Sent from my mobile device
On 10 Dec 2015 8:50 p.m., "Harry Chen" notifications@github.com wrote:

Yes, i'm importing existing project. I added 'Android Beacon' because of
when I Run -> Run 'App', I see this

[image: screen shot 2015-12-10 at 3 31 37 pm]
https://cloud.githubusercontent.com/assets/693098/11727985/367b734a-9f55-11e5-9e42-b7033fdbeeb5.png

It looks like I have to add a configuration in order to build, so that I
add 'Android Application' under the name of 'Android Beacon'. This is where
I showed you.

I also tried to start over again, clone a new repo from here and re-import
from the existing project. Still no luck, thanks for helping out.


Reply to this email directly or view it on GitHub
#24 (comment)
.

@harryhow
Copy link
Author

Android Studio 2.0 Preview 2
screen shot 2015-12-10 at 6 57 21 pm

@mashbridge
Copy link
Contributor

ah, you're on the bleeding edge. i'll update my world here later today and see what's happening. i wouldn't be shocked if there has been a breaking change or two :-)

@harryhow
Copy link
Author

Thanks @mashbridge. Let me know if you want to test something on my side.

@mashbridge
Copy link
Contributor

I installed the latest 2.0 3b build (linux) of Studio from http://tools.android.com/download/studio/canary/latest and tried opening the BeaconServiceDemoApp project. After indexing for a while it failed because it couldn't load one of the .iml files. (I'm not too surprised the files are incompatible -- the build structure of 2.0 is very different and often enough a major version bump implies some level of backwards incompatibility.)

I closed studio, deleted the current build state with cd BeaconServiceDemoApp && rm -rf .gradle local.properties .idea build captures *.iml app/*.iml app/build, opened studio again and re-imported the project. Then it worked fine.

You may not need to blow away your entire state -- it may just be the .iml files that need to be deleted. But it seems easy enough to get things working now. Hope that helps!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants