作者:小小小小修领_233 | 来源:互联网 | 2023-05-18 01:25
CurrentlyIamusingjava8withlatestandroidstudio2.1目前我正在使用java8和最新的androidstudio2.1Here
Currently I am using java 8
with latest android studio 2.1
目前我正在使用java 8和最新的android studio 2.1
Here is my build.gradle
file
这是我的建立。gradle文件
android {
compileSdkVersion 22
buildToolsVersion "24rc3"
defaultConfig {
applicationId "com.name"
minSdkVersion 10
targetSdkVersion 19
jackOptions {
enabled true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
.......
}
I am getting the below compile time error that I have no clue
我得到了下面的编译时间错误,我不知道
Error:com.android.jack.frontend.FrontendCompilationException: Failed to compile at com.android.jack.Jack.buildSession(Jack.java:892) at com.android.jack.Jack.run(Jack.java:472) at com.android.jack.api.v01.impl.Api01ConfigImpl$Api01CompilationTaskImpl.run(Api01ConfigImpl.java:102) ... 8 more Warning:Exception while processing task java.io.IOException: com.android.jack.api.v01.CompilationException: Failed to compile :oTT:compileDebugJavaWithJack FAILED Error:Execution failed for task ':oTT:compileDebugJavaWithJack'.
错误:com. android.jack.frontendcompile exception: com.android.jack.Jack.buildSession(Jack.java:892) com.android.jack.Jack.run(Jack.java: jack. run)另外8个警告:在处理任务java.io时发生异常。IOException:com.android.jack.api.v01。编译异常:编译失败:oTT:compileDebugJavaWithJack失败:任务执行失败':oTT:compileDebugJavaWithJack'。
java.io.IOException: com.android.jack.api.v01.CompilationException: Failed to compile Information:BUILD FAILED
. io .IOException:com.android.jack.api.v01。编译异常:编译信息失败:构建失败
Please feel to ask if you need some details.
如果你需要一些细节,请尽管问。
5 个解决方案