org.scala-sbt sbt-android 0.7 - 很多错误

时间:2015-01-13 11:14:28

标签: android scala sbt

我有一个android-scala项目,sbt 0.12.4,Scala 2.10.4,JDK 7.我刚刚更新了这段代码以使用版本0.7

#plugins.sbt

addSbtPlugin("org.scala-sbt" % "sbt-android" % "0.7")

并在Build.scala中收到错误,例如:

  import sbt._
  import Keys._
  import sbtassembly.Plugin._
  import AssemblyKeys._ 
  import sbtandroid.AndroidPlugin._
  import sbtandroid._
  import scalabuff.ScalaBuffPlugin._  


  //1
  lazy val androidAppSettings =
    Project.defaultSettings ++
    assemblySettings ++
    Seq (
      unmanagedClasspath in Runtime <+= (baseDirectory) map { bd => Attributed.blank(bd / "config") }
    ) ++
    AndroidProject.androidSettings ++  // error:  value androidSettings is not a member of object sbtandroid.AndroidProjects.Standard
    TypedResources.settings ++
    AndroidMarketPublish.settings

   //2
     lazy val androidLibrarySettings =
       Project.defaultSettings ++
       assemblySettings++
       androidSettings //error: not found: value androidSettings


  //3
  val proguardSettings = Seq (
     useProguard in Android := true, // error: not found: value androidSettings


  //4
  proguardExclude in Android <<= (proguardExclude in Android, fullClasspath in Runtime) map { (inherited, cp_) => ... //error: not found: value proguardExclude

  //5
  proguardOption in Android := Seq(
    "-dontobfuscate", //error: not found: value proguardOption
我用谷歌搜索但没有找到任何有用的东西。你有什么想法吗?

0 个答案:

没有答案