bogus "AndroidManifest.xml file missing" error from ADT when adding library

6,023 views
Skip to first unread message

Ken

unread,
Nov 17, 2011, 3:39:44 PM11/17/11
to ActionBarSherlock
Thought this deserved a separate title instead of being buried in the
Version 3.4.0 Release thread so others don't waste time with it.
FYI, if you get this error:

Description Resource Path Location Type
AndroidManifest.xml file missing! AndroidBarSherlock line 1 Android
ADT Problem

You're probably using a non-standard workspace directory which this
this bug:
http://code.google.com/p/android/issues/detail?id=21471

The workaround that worked for me was Francesco's. Instead of doing
File/New/Android Project/from existing source, do File/Import/
ExistingProject, but don't choose copy into workspace in the options.

That gets the AndroidBarSherlock 3.4.2 library into Eclipse cleanly.

My project still bombs out w/ a compile error of:
Description Resource Path Location Type
The project was not built since the source file /MyProject/
AndroidBarSherlock_src/com/actionbarsherlock/internal/widget/
ActionBarView.java could not be read MyProject Unknown Java Problem

And the file is definitely there :-P
Will post back after I figure it out...

Ken

unread,
Nov 17, 2011, 3:57:49 PM11/17/11
to ActionBarSherlock
ok...so after lots of fiddling...I had to:
- get rid of the AndroidBarSherlock_src link under my project
- go to Properties\JavaBuildPath\Source and get rid of the source link
there
- go to Properties\Android\Library and get rid of the library link,
then save it so you get lots of errors
- then go back to Properties\Android\Library and add it again, and
clean the project

Seems to be happy now...linked libraries seem pretty
temperamental...I'm tempted to just copy the src into a fixed library
spot instead of using the JakeWharton-ActionBarSherlock-xxxxxx path
that comes out of the zip every time :-P

Jake Wharton

unread,
Nov 17, 2011, 4:08:00 PM11/17/11
to actionba...@googlegroups.com
I would recommend that.

You could also install git, clone the repo (it'll be in an ActionBarSherlock folder then which you can move wherever), and just run git checkout X.Y.Z inside the folder where X.Y.Z is the version you want. Then when a new version comes out you only have to run git fetch and then checkout the new version.

---
Jake Wharton
http://about.me/jakewharton

Navarr Barnier

unread,
Jan 13, 2012, 12:09:21 PM1/13/12
to actionba...@googlegroups.com
Upon trying this i get "No projects are found to import"

To workaround I generally just move the library folder to my workspace directory, but I get all sorts of general errors such as Overriding things that don't exist.

I'm a bit new; but this is incredibly frustrating, considering I'm following all of the install directions.

Jake Wharton

unread,
Jan 13, 2012, 12:12:31 PM1/13/12
to actionba...@googlegroups.com

Make sure you have ADT 16.0.1 and are using the JDK 1.6 compiler level. That should solve the import and override errors, respectively.

Message has been deleted

deviant studio

unread,
Feb 9, 2012, 1:21:33 PM2/9/12
to actionba...@googlegroups.com
Thank you very much for that advice!!!! I spent a couple of hours with this bug and then found your post. Works perfectly. The only one additional step is to remove gen folder after all manipulations. Your post should be sticked somewhere at the top :)
Message has been deleted
Message has been deleted
Message has been deleted

Siddharth Menon

unread,
Mar 20, 2012, 7:20:11 AM3/20/12
to actionba...@googlegroups.com
Well we have 4 machines running Linux, Mac and one Windows.

Having same issue importing project into eclipse in Linux and Mac. I am sure the project is perfectly fine, I downloaded using git and zip still same problem.


However I have found a workaround.

  1. Add project to Eclipse by going to File >> New Project >> Android Project
  2. Select existing project from existing source, continue and hit Finish.
  3. You will get errors, missing Manifest and more ... 
  4. Now go to File >> Import and select import existing file system
  5. Select the same folder from step 1. Make sure your "into folder" is from Step 1
  6. Tick overwrite all files.
  7. That is it .... Thanks :P

http://twitter.com/buddhasource  Just incase if its not working or not clear let me know.
Reply all
Reply to author
Forward
0 new messages