有没有办法在 Scala SBT-Android 项目上指定 Android Play 服务的依赖关系?我需要编写接收 Google Cloud Message 的应用程序。
我试过了
libraryDependencies ++= Seq(
"com.actionbarsherlock" % "library" % "4.0.2" artifacts(Artifact("library", "apklib", "apklib")),
"com.google.android.gms" % "play-services" % "3.2.65" artifacts(Artifact("play-services", "aar", "aar"))
)
在 Build.scala 中
但是当我尝试构建 apk 时,SBT 抱怨
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.google.android.gms#play-services;3.2.65: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: com.google.android.gms#play- services;3.2.65: not found
提前致谢。