Closed r0b0t3d closed 7 years ago
its quite plausible that you have a dependency on Java poet in another annotation processor, which is a different version. What other annotation processors do you have?
I don't know @agrosner , Could you please guide me how to know that? I'm using android studio with gradle version 2.2.3 This is my build.gradle file
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
repositories {
maven { url "https://jitpack.io" }
// EasyPreferences
maven { url "http://dl.bintray.com/pixplicity/maven" }
}
android {
compileSdkVersion 25
buildToolsVersion '25.0.1'
defaultConfig {
applicationId "com.okee.drive"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "1.0"
dataBinding {
enabled = true
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
def dbflow_version = "4.0.0-beta3"
//def dbflow_version = "develop-SNAPSHOT"
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support:support-v4:25.0.1'
compile 'com.android.support:design:25.0.1'
compile 'com.android.support:recyclerview-v7:25.0.1'
compile 'com.android.support:cardview-v7:25.0.1'
compile 'com.google.android.gms:play-services-location:10.0.1'
compile 'com.google.android.gms:play-services-maps:10.0.1'
// Calligraphy
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
// Glide
compile 'com.github.bumptech.glide:glide:3.7.0'
// Socket io
compile 'io.socket:socket.io-client:0.7.0'
// Dagger
apt 'com.google.dagger:dagger-compiler:2.2'
compile 'com.google.dagger:dagger:2.2'
// PhotoView
compile 'com.github.chrisbanes:PhotoView:1.3.0'
// JieCaoVideoPlayer
compile 'fm.jiecao:jiecaovideoplayer:4.8.3'
// EasyPreferences
compile 'com.pixplicity.easyprefs:library:1.8.1@aar'
// DBFlow
apt "com.github.Raizlabs.DBFlow:dbflow-processor:${dbflow_version}"
// use kapt for kotlin apt
compile "com.github.Raizlabs.DBFlow:dbflow-core:${dbflow_version}"
compile "com.github.Raizlabs.DBFlow:dbflow:${dbflow_version}"
// Otto
compile 'com.squareup:otto:1.3.8'
}
please run a ./gradlew :app:dependencies
and print it here. Its proably b/c Dagger2 also depends on JavaPoet, but might be choosing an older version of lib.
I did update dagger 2 to latest version and it solved the problem. Thanks!
np!
DBFlow Version: 4.0.0-beta3 and develop-SNAPSHOT Issue Kind (Bug, Question, Feature):
Please note if you are using Instant Run, there may be bugs where generated classes are not created. Ensure you are using the apt or kapt plugins and that incremental compilation is off.
Description: Whenever I define a table
this build error happened
Note: I also use Otto bus in my project