GreenDao3编译出现 Error:Execution failed for task ':greendaotest:greendao'. > org.eclipse.jdt.

原因Gradle配置有问题

解决办法
1.Moudle的gradle中

apply plugin: 'org.greenrobot.greendao'

greendao {
    schemaVersion 1
    daoPackage 'com.anye.greendao.gen'
    targetGenDir 'src/main/java'
}

dependencies {
    compile 'org.greenrobot:greendao:3.2.0'
}

2.Project的gradle中

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'
        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'
    }
}

你可能感兴趣的:(Execution)