我有一个Android-Scala项目,其中包含子项目。在所有的build.sbt
文件中,我设置了scalaVersion:
scalaVersion := "2.11.4"
而在project/build.properties
中,我设置了如下内容:
sbt.version=0.12.4
然而,它不断生成这个文件夹路径(Scala 2.9.2)
/home/alex/Documents/projects/android/my_project//project/target/scala-2.9.2/sbt-0.12/classes
,当我在根目录下只输入sbt执行时,它会抛出异常:[error] error while loading CharSequence, class file '/usr/local/java/jdk1.8.0_05/jre/lib/rt.jar(java/lang/CharSequence.class)' is broken
[error] (bad constant pool tag 15 at byte 1501)
[error] one error found
[error] (compile:compile) Compilation failed
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore?
是的,我有JDK 8,但我正在使用scala 2.11.4
。
echo $JAVA_HOME
/usr/local/java/jdk1.8.0_05