缺少 DBFlow 包 - gradle

DBFlow packages are missing - gradle

缺少 DBFLow 包

DB Flow 有 2 个 jar
编译 "com.github.Raizlabs.DBFlow:dbflow-core:${dbflow_version}"
编译 "com.github.Raizlabs.DBFlow:dbflow:${dbflow_version}@aar"

dbflow-core 中的所有包都可用,但 dbflow 中的包丢失,而 building/coding 在 android studio..

jar 文件肯定在 gradle 缓存中。

尝试清除 .gradle 目录(无效)
尝试将 jar 文件添加到 libs 文件夹中(无效)

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

您的应用 build.gradle:

中缺少这些行
allprojects {
    repositories {
        maven { url "https://www.jitpack.io" }
    }
}

你应该把它放在dependencies之前和同一层。