Reputation: 309
I am currently developing an Android-App in Eclipse and trying to use a Library Project to access resources. I followed the description in Managing Projects from Eclipse with ADT: Under Project->Properties->Android I marked the Library Project as is Library and in the same setting windows, but for the other Android Project, I selected the Library Project as Reference.
What happens if I try to access a theme from the Library Project in the 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 Generated Java Files in gen\ and the .jar-file together 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 computer, ...
... without success. :/ Any ideas what I am missing? - It really seems to be a straight forward procedure and I already read lots of discussions about related problems, like:
Android - Is it possible to create a custom library to use across several appilcations? When using an Android Library Project how do you reference xml resources properly?
... but I just can't get it running!
Hope someone out there has an idea! - Thank you!
Upvotes: 4
Views: 4890
Reputation: 641
I think it's not android style. Try to remove "android", leave just "@style"
Upvotes: 2