缺少 DBFlow 包
DB Flow 有 2 个 jar
编译 "com.github.Raizlabs.DBFlow:dbflow-core:${dbflow_version}"
编译 "com.github.Raizlabs.DBFlow:dbflow:${dbflow_version}@aar"
dbflow-core 中的所有包都可用,但在 android studio 中构建/编码时缺少 dbflow 中的包。
jar 文件肯定存在于 gradle 缓存中。
尝试清除 .gradle 目录(无效)
尝试在 libs 文件夹中添加 jar 文件(无效)
PFB gradle 文件内容
apply plugin: 'com.android.library'
apply plugin: 'com.neenbedankt.android-apt'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
def dbflow_version = "3.0.0-beta3"
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
//DBFlow
compile "com.github.Raizlabs.DBFlow:dbflow-core:${dbflow_version}"
compile "com.github.Raizlabs.DBFlow:dbflow:${dbflow_version}@aar"
apt "com.github.Raizlabs.DBFlow:dbflow-processor:${dbflow_version}"
//Boiler Plate Reducers
provided 'org.projectlombok:lombok:1.16.6'
apt 'org.projectlombok:lombok:1.16.6'
compile 'org.parceler:parceler-api:1.0.4'
apt 'org.parceler:parceler:1.0.4'
}