在plugins.sbt中更改
来自:addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.6")
收件人:addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.6")
build.properties更改
来自:sbt.version=0.13.5
收件人:sbt.version=0.13.8
有错误:
[error] sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected.
[error] Note that conflicts were resolved for some dependencies:
[error] org.apache.commons:commons-compress
[error] org.tukaani:xz
[error] org.codehaus.plexus:plexus-utils
[error] com.google.guava:guava
[error] org.codehaus.plexus:plexus-classworlds
[error] com.typesafe.akka:akka-actor_2.10
[error] com.typesafe:config
[error] org.slf4j:slf4j-api
[error] org.apache.commons:commons-lang3
[error] org.fusesource.leveldbjni:leveldbjni
[error] org.webjars:webjars-locator
[error] com.typesafe.sbt:sbt-web
[error] com.typesafe.sbt:sbt-js-engine
[error] Use 'last' for the full log.
是否有人知道如何解决这个问题?
答案 0 :(得分:0)
问题在于 play2-war-plugin 插件。
只需将版本从<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/layout"
android:background="@color/editTextBG">
<LinearLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical"
android:padding="10dp">
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/editTextFont"
android:textSize="35sp" />
<TextView
android:id="@+id/log"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/editTextFont"
android:textSize="20sp" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
android:padding="10dp">
<TextView
android:id="@+id/date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/editTextFont"
android:textSize="35sp" />
<TextView
android:id="@+id/time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:textColor="@color/editTextFont"
android:textSize="20sp" />
</LinearLayout>
</LinearLayout>
</ScrollView>
更改为1.3-beta1
,项目就可以成功编译