Java – use ant to build a project that contains actionbar Sherlock as a library project

My Apache ant project uses actionbar Sherlock as the project library to build a problem I have successfully used "Android update lib project – path. – target android-13" in the actionbarsherlock Library folder and in my project Target android-13 – library path / to / actionbarsherlock / library "

Build the library correctly using ant debugging, but when I enter my project folder and try to build the project, I receive the following error:

[aapt] /var/www/vhosts/nicom/httpdocs/cl_ app/res/values/style. XML: 40: error: error retrieving the parent of the item: no resource matching the given name 'theme. Sherlock. Light' was found [aapt] /var/www/vhosts/nicom/httpdocs/cl_ app/res/values/style. XML: 41: error: error: cannot find a resource with the given name: attr 'abbackground' [aapt] /var/www/vhosts/nicom/httpdocs/cl_ app/res/values/style. XML: 42: error: error: cannot find a resource with the given name: attr 'ablogo' [aapt] /var/www/vhosts/nicom/httpdocs/cl_ app/res/values/style. XML: 43: error: error: cannot find a resource with the given name: attr 'actionbarsize'

Has anyone successfully established a project with this library? I guess this is a specific mistake of the library, which has nothing to do with my project, but please correct me if I am wrong

Solution

In fact, I have the same problem, which is very frustrating because I don't know what I did wrong But it turns out that Android SDK has some problems. It does not allow custom attributes to be defined in library projects

Google issue page shows that this has been open for a long time!

So now, if you really need to use the library, you need to copy all the layout files that exist in the library I know, it sucks

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>