1,插件依赖
buildscript {
repositories {
mavenCentral()
}
dependencies {
// greenDAO 所需的 gradle 插件
classpath fileTree(include: ['*.jar'], dir: 'thirdparty/orm/plugin')
}
}
2,包依赖
/Users/你的用户名/.gradle/caches/modules-2/files-2. 目录中看到之前下载的所有依赖,
dependencies {
compile files('libs/greendao-3.2.0.jar') // orm框架
compile files('libs/greendao-api-3.2.0.jar')
}