//GreenDao的依赖
compile 'com.squareup.retrofit2:retrofit:2.0.1' compile 'com.squareup.okio:okio:1.5.0' compile 'com.squareup.okhttp3:okhttp:3.2.0' compile 'com.squareup.retrofit2:converter-gson:2.0.1' compile 'com.squareup.okhttp3:logging-interceptor:3.4.1' compile 'org.greenrobot:greendao:3.2.0' compile 'com.android.support:recyclerview-v7:26+'
//这是自定义GreenDao的地址的方式
greendao { schemaVersion 1 daoPackage 'com.example.liufan.magreen.geen' targetGenDir 'src/main/java'
}
//插件
apply plugin: 'org.greenrobot.greendao'//工程里假的依赖
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'