I removed this section:
>>>
// Tests //////////////////////////////

libraryDependencies ++= Seq(
  "org.apache.maven" % "maven-ant-tasks" % "2.1.3" % "test",
  "org.robolectric" % "robolectric" % "3.0" % "test",
  "junit" % "junit" % "4.12" % "test",
  "com.novocode" % "junit-interface" % "0.11" % "test"
)

// without this, @Config throws an exception,
unmanagedClasspath in Test ++= (bootClasspath in Android).value
<<<

And the build started to work.
So this config works with new version of android sbt plugin ("org.scala-
android" % "sbt-android" % "1.6.10"):

>>>
name := "hello-scaloid-sbt"

import android.Keys._
android.Plugin.androidBuild

javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
scalaVersion := "2.11.7"
scalacOptions in Compile += "-feature"

platformTarget in Android := "android-16"
updateCheck in Android := {} // disable update check
proguardCache in Android ++= Seq("org.scaloid")
proguardScala := true

proguardOptions in Android ++= Seq("-dontobfuscate", "-dontoptimize", 
"-keepattributes Signature", "-printseeds target/seeds.txt", "-printusage 
target/usage.txt"
  , "-dontwarn scala.collection.**" // required from Scala 2.11.4
  , "-dontwarn org.scaloid.**" // this can be omitted if current Android 
Build target is android-16
)

libraryDependencies += "org.scaloid" %% "scaloid" % "4.2"

run <<= run in Android
install <<= install in Android
<<<

Best,

M




On Monday, August 8, 2016 at 10:43:42 AM UTC-7, M wrote:
>
> Hello,
> I tried to find the reason for this and it looks like this line in 
> built.sbt is adding android.jar to bundled files:
> // without this, @Config throws an exception,
> unmanagedClasspath in Test ++= (bootClasspath in Android).value
>
> I'm using the following sbt android plugins:
>
> addSbtPlugin("org.scala-android" % "sbt-android" % "1.6.10")
> libraryDependencies += "net.sf.proguard" % "proguard-base" % "5.2.1"
>
> I printed bootClasspath content:
> boot cp: 
> ArrayBuffer(Attributed(/Users/user/.android/sbt/sdk/platforms/android-16/android.jar))
>
> I can't figure out why is that file being included twice? How can I remove 
> duplicates?
> I would appreciate any help in this matter.
> Thanks,
>
> M
>
>

-- 
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.

Reply via email to