AndroidManifest.xml is missing
Asked Answered
C

11

62

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 ?

Cornel answered 21/9, 2012 at 7:25 Comment(4)
Well, do you have an AndroidManifest.xml file within your project?Dihedron
@mattquiros : Yes I have AndriodManifest.xmlCornel
Try: Click on your project -> Refresh (F5) -> Go to "Project" in the menu bar -> Clean (and clean the project). If all else fails, restart eclipse. Let us know what happens next.Dihedron
Puff.. I am tired of these strange problems... good that we have people like you helping us!!!Carrasco
R
125

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

Ringo answered 30/3, 2013 at 13:12 Comment(3)
hmm ... nothing new compared to earlier answers, is there?Peadar
if your project is referencing other library projects, do the same for the library projects too.Dortheydorthy
"Clean all" from Project menu achieved same resultsPilcomayo
R
43

you should clean and refresh your project once.

Rampant answered 21/9, 2012 at 7:34 Comment(2)
its not showing any error mark my project. and my app gen folder is createdCornel
rt clk on project> properties> JAVA build path > see whether any file is missing there.... then clean your project!Ptyalism
E
7

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.

Exhortative answered 10/3, 2013 at 8:55 Comment(0)
E
1

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

Educatee answered 28/7, 2014 at 19:35 Comment(0)
Q
1

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.

Quentinquercetin answered 9/10, 2014 at 15:19 Comment(0)
E
1

I put the AndroidManifest.xml that in appcomatv7 and pasted to the project and problem solved

Eadmund answered 9/9, 2015 at 11:58 Comment(0)
M
1

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

Magritte answered 19/4, 2019 at 8:41 Comment(0)
P
0

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.

Pugliese answered 3/9, 2014 at 20:5 Comment(0)
D
0

I had the problem in android studio after an update , it worked by Tools ->Android ->sync with gradle file

Duty answered 5/8, 2015 at 12:31 Comment(0)
R
0

(what worked for me)

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

Rooke answered 9/5, 2020 at 23:11 Comment(0)
C
0

before

After add Package name

add package name

Carlicarlick answered 11/5, 2023 at 9:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.