android錯誤:Error converting bytecode to dex:
Error:Error converting bytecode to dex:
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the 'java' gradle plugin in a library submodule add
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
to that submodule's build.gradle file.
...while parsing org/tensorflow/DataType.class
修改buidle.gradle版本
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the 'java' gradle plugin in a library submodule add
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
to that submodule's build.gradle file.
...while parsing org/tensorflow/DataType.class
修改buidle.gradle版本
buildscript { repositories { } dependencies { classpath 'com.android.tools.build:gradle:3.0.0' } }
android { compileSdkVersion 26 buildToolsVersion "26.0.1"
}
留言
張貼留言