I am currently developing an Android application in Eclipse and am trying to use a library project to access resources. I followed the description in Project Management from Eclipse using ADT : In the Project-> Properties-> Android section, I marked the library project as a library and in the same settings window, but for another Android project, I selected the library project as a link.
What happens if I try to access a topic from a library project in AndroidManifest.xml of my Android project:
<activity android:name="com.bla.blub" android:theme="@android:style/Theme.HoloEverywhere">
=>
error: Error: No resource found that matches the given name (at 'theme' with value '@android:style/Theme.HoloEverywhere').
(The library project shows no errors, and I see the generated Java files in the gen \ and .jar file along with the resources in bin \)
What I also tried:
in the AndroidManifest.xml file:
<uses-library android:name="com.WazaBe.HoloEverywhere" />
clean, rebuild, restart Eclipse, restart the computer, ...
- in Project-> Properties-> Java Build Path-> Libraries that I added (and also deleted again):
- Library project jar file
- Library Project Genetic Folder as Class-Folder
... without success.: / Any ideas what I am missing? - It seems to be a simple procedure, and I already read a lot of discussions about related issues, for example:
Android Is it possible to create a custom library for use in multiple applications? When using an Android library project, how to access xml resources correctly?
... but I just can't get it to work!
Hope someone has an idea! - Thanks!
source share