As soon as I start sbt I get the following error:

scala.MatchError: Stream(sbt.BuildLoader$Components@45f1413c, ?) (of class 
scala.collection.immutable.Stream$Cons)
    at sbt.Load$.addResolvers(Load.scala:273)
    at sbt.Load$.loadAll(Load.scala:314)
    at sbt.Load$.loadURI(Load.scala:264)
    at sbt.Load$.load(Load.scala:260)
    at sbt.Load$.load(Load.scala:251)
    at sbt.Load$.apply(Load.scala:134)
    at sbt.Load$.defaultLoad(Load.scala:37)
    at sbt.BuiltinCommands$.doLoadProject(Main.scala:473)
    at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:467)
    at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:467)
    at 
sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)
    at 
sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)
    at 
sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)
    at 
sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)
    at sbt.Command$.process(Command.scala:95)
    at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:100)
    at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:100)
    at sbt.State$$anon$1.process(State.scala:179)
    at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:100)
    at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:100)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
    at sbt.MainLoop$.next(MainLoop.scala:100)
    at sbt.MainLoop$.run(MainLoop.scala:93)
    at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:71)
    at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:66)
    at sbt.Using.apply(Using.scala:25)
    at sbt.MainLoop$.runWithNewLog(MainLoop.scala:66)
    at sbt.MainLoop$.runAndClearLast(MainLoop.scala:49)
    at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:33)
    at sbt.MainLoop$.runLogged(MainLoop.scala:25)
    at sbt.StandardMain$.runManaged(Main.scala:57)
    at sbt.xMain.run(Main.scala:29)
    at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
    at xsbt.boot.Launch$.withContextLoader(Launch.scala:129)
    at xsbt.boot.Launch$.run(Launch.scala:109)
    at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:36)
    at xsbt.boot.Launch$.launch(Launch.scala:117)
    at xsbt.boot.Launch$.apply(Launch.scala:19)
    at xsbt.boot.Boot$.runImpl(Boot.scala:44)
    at xsbt.boot.Boot$.main(Boot.scala:20)
    at xsbt.boot.Boot.main(Boot.scala)
[error] scala.MatchError: Stream(sbt.BuildLoader$Components@45f1413c, ?) 
(of class scala.collection.immutable.Stream$Cons)

(To see the full log, check http://pastebin.com/TCyBASA4 )

I uploaded a simple project to Github, and the build file is here: 
https://github.com/oscarvarto/RobotiumSpecs2/blob/master/project/build.scala
I cannot see what am I doing wrong (maybe I'm tired?)

Removing the external git project configuration stuff makes it possible to 
start sbt. Then, with
android:test
it is possible to run
https://github.com/oscarvarto/RobotiumSpecs2/blob/master/src/instrumentTest/scala/com.zcalculator/test/MainTest.scala
on the device (using Robotium and org.specs2.matcher.JUnitMustMatchers). 

However, I was trying to write a test specification like
https://github.com/oscarvarto/RobotiumSpecs2/blob/master/src/instrumentTest/scala/com.zcalculator/test/MainSpec.scala

But Android Testing supports JUnit3, not JUnit4. That's why I was trying to 
add JUnit4Android, but got stuck...


I must say that including the following line was necessary to use specs2:

externalDependencyClasspath in Test ~= { cp => cp filterNot (_.data.getName 
contains "mockito-core-1.9.5.jar") })

Thanks :-)

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