I am having problems compiling my project after adding Realm.io as a dependency via gradle. Generated files created by a dagger and data binding cannot be found. If I remove realm.io, the application compiles correctly.
Here is my build.gradle
apply plugin: 'com.android.application' apply plugin: 'com.neenbedankt.android-apt' apply plugin: 'com.android.databinding' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { multiDexEnabled true applicationId "com.foo" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.facebook.stetho:stetho:1.2.0' compile 'com.facebook.stetho:stetho-okhttp:1.2.0' compile 'io.reactivex:rxandroid:0.24.0' compile 'io.reactivex:rxjava:1.0.14' compile 'com.squareup.okhttp:okhttp:2.4.0' compile 'com.squareup.okhttp:okhttp-urlconnection:2.4.0' compile 'com.squareup.retrofit:retrofit:1.9.0' compile 'com.squareup.okio:okio:1.4.0' compile 'com.google.code.gson:gson:2.3' compile 'com.jakewharton:butterknife:6.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.squareup.picasso:picasso:2.3.2' compile 'com.android.support:cardview-v7:23.1.0' compile 'com.android.support:multidex:1.0.1' compile 'com.android.support:design:23.1.0' compile 'com.jakewharton.timber:timber:4.1.0' compile 'io.realm:realm-android:0.85.1' compile 'com.google.dagger:dagger:2.0.1' provided 'javax.annotation:jsr250-api:1.0' apt "com.google.dagger:dagger-compiler:2.0.1" apt 'com.android.databinding:compiler:1.0-rc4' }

I see that Realm also creates files, and maybe the compilers do not play well together. Any ideas on how to do this?
thanks
source share