jdk升级到8 AndroidStudio升级到2.3.1 后运行时报以下错误
Error:Execution failed for task ':app:greendao'.
> org.eclipse.jdt.internal.compiler.impl.CompilerOptions.versionToJdkLevel(Ljava/lang/Object;)
解决方法:
将
classpath 'com.android.tools.build:gradle:2.3.0' classpath 'org.greenrobot:greendao-gradle-plugin:3.2.0'
迁移到顶层build.gradle 例如:
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.0' classpath 'org.greenrobot:greendao-gradle-plugin:3.2.0' }}
参考链接:http://stackoverflow.com/questions/42610364/build-fails-for-greendao-3-2-with-compileroptions-versiontojdklevel