Remove android.library.reference.1=../Lib from project.properties Use project.properties or androidBuildWith, not both together.
On Thu, Oct 8, 2015, 4:33 AM Far Be <far...@gmail.com> wrote: > Help needed. After updating pluging from v1.4.8 to v1.5.4 and platformTarget > to 23 unexpected error came out: > > *[info] Processing resources* > *[debug] All libs: > List(LibraryProject(Gradle(D:\Pronext\LibAndroid\Test\..\Lib,D:\Pronext\LibAndroid\Test\..\Lib\target)), > LibraryProject(Gradle(D:\Pronext\LibAndroid\Lib,D:\Pronext\LibAndroid\Lib\target)))* > *[debug] All packages: List(just4fun.android.core, just4fun.android.core)* > *[debug] packageForR: just4fun.android.libtest* > *[debug] proguard.txt: > D:\Pronext\Sketch\LibAndroid\Test\target\android\intermediates\proguard\proguard.txt* > *java.lang.RuntimeException: Error: more than one library with package > name '**mypackage**.android.core'* > * at > com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:926)* > > * at android.Resources$.aapt(resources.scala:225) at > android.Tasks$$anonfun$54$$anonfun$apply$61.apply(tasks.scala:814) at > android.Tasks$$anonfun$54$$anonfun$apply$61.apply(tasks.scala:810) > ....As seen from debug info it seems that > path: D:\Pronext\LibAndroid\Test\..\Lib and > path: D:\Pronext\LibAndroid\Lib are considered different but indeed they > point to the same location. And i do not understand where the second path > came from. Digging into plugin sources i found some place where the issue > might happen: resources.scala > line 241 > def collectdeps(...) > where > tries to distinct LibraryProjects by path. But i'm far from real state of > what is going on.* > > Here is the build.sbt that previously compiled well: > https://github.com/just-4-fun/LibAndroid/blob/master/build.sbt > (Cut version): > *lazy val root = project.in <http://project.in>(file("."))*.settings( > name := "LibAndroid" , scalaVersion := "2.11.7" , install <<= install in > Android in test , run <<= run in Android in test ) > .settings(androidCommands) .aggregate(test, lib, utils) lazy val lib = > project.in(file("Lib")) .settings( name := "Lib" , androidBuild , > libraryProject in Android := true , transitiveAndroidLibs in Android := > false ) .settings(commonSettings: _*) .dependsOn(utils) lazy val test = > project.in(file("Test")) .settings( name := "Test" ) .settings( > commonSettings: _*) .dependsOn(utils) .androidBuildWith(lib) lazy val > utils = RootProject(file("../../Utils")) lazy val commonSettings = Seq( > scalaVersion := "2.11.7" , minSdkVersion := "14" , targetSdkVersion := "23 > " , platformTarget in Android := "android-23") ... > > Any idea would be welcome. > > -- > 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 scala-on-android+unsubscr...@googlegroups.com. > 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 scala-on-android+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.