Reputation: 819
I'm trying include a library inside my android project, I include the library from android properties. Both projects (lib and my project) is compiling with the same version of android, both have the same compatibility lib. If I include the same lib in a example project work fine.
My problem is when I include the lib in my project and refresh, the R files are not generating and appear the error "aapt: Return code 139" I put the verbose mode in the builder, but the errors appear in diferent places.
I did the same in other machine (both are macs), with the same adt and same eclipse version and works.
I tryed to increase the eclipse memory but this don't resolve the problem.
Somebody knows what it is happen? What is the error 139? why do it works in one machine and not in other?
Thanks,
Upvotes: 1
Views: 2798
Reputation: 396
Can be linked with ids generation issue.
Don't use @+id/...
in styles.
@+id/...
can only be used in layouts.
Otherwise you can get Error executing apt: return code 139
during build.
Use @id/...
and generate ids with help resource file if needed: res/values/ids.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="id" name="header" />
<item type="id" name="footer" />
</resources>
http://developer.android.com/guide/topics/resources/more-resources.html#Id
Upvotes: 6