简体   繁体   中英

AndroidManifest.xml is missing

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 ?

Delete bin folder in project and your library dependencies. Then re-run application.

您应该清理并刷新您的项目一次。

我可以通过手动删除 bin 目录以及 gen 目录,右键单击项目并选择 Android Tools->Fix Project Properties,然后使用 Project->Build All 来解决此问题。

Restart your eclipse and make sure that build automatically checked. It worked for me all the time. Hope this helps some one.

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.

我把 AndroidManifest.xml 放在 appcomatv7 中并粘贴到项目中,问题解决了

Click project -> Refresh (F5) -> Go to "Project" in the menu bar -> Clean. It works for me.

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.

更新后我在 android studio 中遇到了问题,它通过工具 ->Android -> 与 gradle 文件同步

(what worked for me)

1 - copy the file build.gradle 2 - drop the copied file in the android folder [example MyApp/android]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM