I followed the instructions here on how to create an Android library project and use it in an Android app:
http://developer.android.com/guide/developing/eclipse-adt.html
but it does not work. I see that the library project has been added to my application, but I can’t reference anything because it will not be created. The R.java file from lib is NOT added to my application project, so the lib project contains many errors, everywhere it tries to link to its own R.java file.
I don’t know if this is related to this, but there are messages on the console that say “there is no resource identifier found for the attribute“ X ”in the package“ Lib Package. ”Aa several custom attributes defined for the user view, which I did, all of which complain about this console message.The library builds just fine, and I do not receive these messages in the console until I connect the library to my application, so I don’t know what it is.
I really would like this to work. I spent the whole two days to no avail. Please suggest any ideas that may help you!
android reference
Christopher perry
source share