transitiveAndroidLibs in Android := false

Set that on your app project.

--
Sent from my phone
On Jul 15, 2014 6:16 AM, "Shadowburst" <[email protected]> wrote:

> I thought I had it working yesterday, but when I tried to build from clean
> I started getting errors I hadn't had before. This suggests that building
> after a config change doesn't always rebuild everything it ought to, which
> is very worrying. I now get
>
> > packageDebug
> [info] Updating {file:/home/z1/shadowburst/burly/}preference...
> [info] Resolving org.fusesource.jansi#jansi;1.4 ...
> [info] Done updating.
> [info] Updating {file:/home/z1/shadowburst/burly/}burly...
> [info] Resolving com.intellij#annotations;12.0 ...
> [info] Collecting resources
> [info] Performing full resource merge
> [info] Resolving org.fusesource.jansi#jansi;1.4 ...
> [info] Done updating.
> [info] Generating R.java
> [info] Rebuilding all classes because R.java has changed
> [info] Compiling 29 Java sources to
> /home/z1/shadowburst/burly/preference/bin/classes...
> [info] Packaging /home/z1/shadowburst/burly/preference/bin/classes.jar ...
> [info] Collecting resources
> [info] Performing full resource merge
> [info] Done packaging.
> [info] Processing library project: com.shadowburst.preference
> [info] Generating R.java
> [info] Packaging resources: resources-debug.ap_
> [trace] Stack trace suppressed: run last burly/android:rGenerator for the
> full output.
> [trace] Stack trace suppressed: run last burly/android:packageResources
> for the full output.
> [error] (burly/android:rGenerator) Error: more than one library with
> package name 'com.shadowburst.preference'
> [error] You can temporarily disable this error with
> android.enforceUniquePackageName=false
> [error] However, this is temporary and will be enforced in 1.0
> [error] (burly/android:packageResources) Error: more than one library with
> package name 'com.shadowburst.preference'
> [error] You can temporarily disable this error with
> android.enforceUniquePackageName=false
> [error] However, this is temporary and will be enforced in 1.0
> [error] Total time: 10 s, completed 15-Jul-2014 13:26:42
>
> where burly is the app project and preference is the library project.
> preference is mentioned three times in burly's settings: once as the
> argument to androidBuild, once in localProjects in Android +=
> LibraryProject(preference.base), and finally as the argument to dependsOn.
> If I remove the localProjects line, and reload/clean/packageDebug, it
> gets past this point, but fails at Proguard. Proguard gives a "Duplicate
> definition of program class" note for every class from the library project,
> and later errors with
>
> [error] (burly/android:proguard) java.io.IOException: Can't write
> [/home/z1/shadowburst/burly/burly/bin/classes.proguard.jar] (Can't read
> [/home/z1/shadowburst/burly/burly/bin/classes.jar(;;;;;;!META-INF/**,!rootdoc.txt)]
> (Duplicate zip entry
> [classes.jar:com/shadowburst/util/ContainerHelpers.class]))
>
> (this class being the second from the list of duplicate definitions from
> my library). It seems like the library classes are being included from
> their own classes.jar and in the classes.jar in the app project, but I have
> no idea why.
>
> --
> You received this message because you are subscribed to the Google Groups
> "scala-on-android" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to