You need to install the android support repository in the SDK manager -- Sent from my phone On Dec 23, 2013 2:31 PM, "Desmond O. Chang" <[email protected]> wrote:
> Hi, > > Perry Nguyen <[email protected]> writes: > > > instead of using an appcompat subproject, use the appcompat aar: > > > > libraryDependencies += "com.android.support" % "appcompat-v7" % > > "18.0.0" > > I tried your solution but I still failed. Directory `appcompat` has been > removed from my project. The content of `Build.scala` is: > > ``` > import sbt._ > import sbt.Keys._ > > import android.Keys._ > > object MyProjectBuild extends Build { > > // meta project > lazy val root = Project(id = "meta-project", base = file(".")) settings( > packageT in Compile <<= packageT in Android in myproject, > packageRelease <<= packageRelease in Android in myproject, > packageDebug <<= packageDebug in Android in myproject > ) aggregate(myproject) > > > // android application project > lazy val myproject = Project(id = "myproject", base = > file("action-bar-demo")) settings(Seq( > libraryDependencies += "com.android.support" % "appcompat-v7" % > "18.0.0" > ) ++ android.Plugin.androidBuild: _*) > } > ``` > > > After running `sbt clean myproject/android:run` I got an error: > > [error] (myproject/*:update) sbt.ResolveException: unresolved > dependency: com.android.support#appcompat-v7;18.0.0: not found > > What's the problem? > > -- > 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/groups/opt_out. > -- 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/groups/opt_out.
