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')
}