61

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 ?

Prasad
  • 1,335
  • 5
  • 17
  • 31
  • Well, do you have an AndroidManifest.xml file within your project? – MLQ Sep 21 '12 at 07:29
  • @mattquiros : Yes I have AndriodManifest.xml – Prasad Sep 21 '12 at 07:34
  • 33
    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. – MLQ Sep 21 '12 at 07:59
  • Puff.. I am tired of these strange problems... good that we have people like you helping us!!! – Trebia Project. Nov 23 '14 at 15:09

10 Answers10

124

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

Dmytro Sirenko
  • 4,883
  • 19
  • 26
Rocky030
  • 1,256
  • 1
  • 9
  • 2
43

you should clean and refresh your project once.

Androholic
  • 526
  • 3
  • 9
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.

Daniel F
  • 12,968
  • 10
  • 84
  • 107
1

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

Deepthi
  • 21
  • 2
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.

1

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

NeverMind
  • 11
  • 2
1

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

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.

Community
  • 1
  • 1
J Webb
  • 691
  • 1
  • 10
  • 13
0

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

Raluca Lucaci
  • 1,968
  • 2
  • 19
  • 37
0

(what worked for me)

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

FrenzyNwoba
  • 41
  • 1
  • 6