1 项目根build.gradle
classpath 'org.greenrobot:greendao-gradle-plugin:3.1.0'
2 app中build.gradle
apply plugin:'org.greenrobot.greendao'
dependencies{
compile 'org.greenrobot:greedao:3.1.0'
}
3 配置生成目录
greendao{
targetGenDir 'src/main/java'
}
1 项目根build.gradle
classpath 'org.greenrobot:greendao-gradle-plugin:3.1.0'
2 app中build.gradle
apply plugin:'org.greenrobot.greendao'
dependencies{
compile 'org.greenrobot:greedao:3.1.0'
}
3 配置生成目录
greendao{
targetGenDir 'src/main/java'
}