Reputation: 1375
I created one android application project in eclipse and whenever I tried to run that application its throwing an error message saying AndroidManifest.xml
file is missing. what is the reason for this ?
I am using eclipse with android-sdk and ADT version is 20. in SDK manager I installed android 2.2 API level only.. Is this is the problem for that error ?
Upvotes: 62
Views: 72062
Reputation: 352
(what worked for me)
1 - copy the file build.gradle
2 - drop the copied file in the android folder [example MyApp/android]
Upvotes: 0
Reputation: 119
Click project -> Refresh (F5) -> Go to "Project" in the menu bar -> Clean. It works for me.
Upvotes: 1
Reputation: 21
I put the AndroidManifest.xml that in appcomatv7 and pasted to the project and problem solved
Upvotes: 1
Reputation: 2153
I had the problem in android studio after an update , it worked by Tools ->Android ->sync with gradle file
Upvotes: 0
Reputation: 11
I closed all projects that were unrelated with the one I was trying to run (right-click on project in Project Explorer and then selecting Close Project) and the problem magically disappeared (for no apparent reason). Then, even after I re-opened the closed projects, the problem did not come back.
Upvotes: 1
Reputation: 711
I was having the same problem and didn't understand why - followed all deletes of /bin, /gen, fixing AVD's, etc, still to no avail.
The /bin got me thinking though -
I had previously used this advice to exclude /bin from the resource filters (in an effort to remove results from the search)....
I removed the filter for /bin and voila.....
Interesting this only affected me when I wanted to Debug or Run within Eclipse -- I could export a working APK without any problem, but debugging failed.
Hope this helps.
Upvotes: 0
Reputation: 21
Restart your eclipse and make sure that build automatically checked. It worked for me all the time. Hope this helps some one.
Upvotes: 1
Reputation: 1266
Delete bin
folder in project and your library dependencies. Then re-run application.
Upvotes: 125
Reputation: 14239
I was able to fix this by manually deleting the bin directory, as well as the gen directory, right clicking project and selecting Android Tools->Fix Project Properties, then using Project->Build All.
Upvotes: 7