austgl / transdroid

Automatically exported from code.google.com/p/transdroid
GNU General Public License v3.0
0 stars 0 forks source link

Error compiling project with new version of SDK #356

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Download the source and add the project to eclipse

What version of the product are you using?
Revision 372

More information:

It is failing to generate the code from the file themes.xml:
line 3: <style name="Theme.Transdroid" parent="@style/Theme.Sherlock">
error: Error retrieving parent for item: No resource found that matches the 
given name '@style/Theme.Sherlock'. 

http://code.google.com/p/android/issues/detail?id=18659

"What is happening is that some styles, like WindowTitle are not public (you 
won't find them in android.R.style). You should not be extending non public 
resources. aapt used to let you do that but it was a bug which was fixed in 
platform-tools r6.

The issue is that once compiled, resources are assigned an integer. In this 
case your custom style is assigned an integer and its parent is referenced 
through the parent integer.

For the framework, only public resources are guaranteed to only have the same 
integer, build after build. The integer of private resources integer will 
change from build to build.

This means that your custom style is referencing a parent that *will not* be 
valid once installed on a device. It'll referenced either another resources or 
none at all, and it won't do what you want.

If you wish to reuse a style that is private, you should copy the content of 
that style into your own instead of extending it."

Original issue reported on code.google.com by cristian...@gmail.com on 23 Oct 2011 at 11:22

GoogleCodeExporter commented 9 years ago
Actually, that's not the problem. Transdroid (from now on) uses the 
ActionBarSherlock library to offer a unified ActionBar in a tablet and phone 
interface as well as all Android version from 1.6 and up (including 4.0). When 
you want to compile Transdroid you'll need to download the project from 
www.actionbarsherlock.com and add that to as a library project. I'll update the 
documentation on this site.

Original comment by erickok@gmail.com on 23 Oct 2011 at 12:32

GoogleCodeExporter commented 9 years ago
Please see http://code.google.com/p/transdroid/wiki/CodeContributions Hopefully 
that will answer most questions on compiling Transdroid. Any specific work you 
are planning to do?

Original comment by erickok@gmail.com on 23 Oct 2011 at 1:06