今天在做项目的时候需要用到greendao,将它集成到androStudio中的时候,爆了如下错:
Error:Execution failed for task ':greendaotest:greendao'.
> org.eclipse.jdt.internal.compiler.impl.CompilerOptions.versionToJdkLevel(Ljava/lang/Object;)J
开始我还以为是jdk原因,上网查,也没查出个所以然,后来参考了github上面的讨论链接,才发现,是我把下面代码集成搞混了,
buildscript { repositories { jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:2.3.0' classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1' } }开始我添加在了module的buildle.gradle里面,后来我直接移动到工程的 buildle.gradle里面再,再在Build里面选中make project成功通过。