Closed Axrorxoja closed 7 years ago
I think you need to replace
annotationProcessor "com.google.dagger:dagger-compiler:" + dagger
annotationProcessor "com.google.dagger:dagger-android-processor:" + dagger
compile "com.jakewharton:butterknife:" + butterKnife
annotationProcessor "com.jakewharton:butterknife-compiler:" + butterKnife
with
kapt "com.google.dagger:dagger-compiler:" + dagger
kapt "com.google.dagger:dagger-android-processor:" + dagger
compile "com.jakewharton:butterknife:" + butterKnife
kapt "com.jakewharton:butterknife-compiler:" + butterKnife
and also you need to apply kotlin-kapt
plugin
apply plugin: "com.android.application"
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'realm-android'
and add
kapt {
generateStubs = true
}
work :+1: ,thanks :)
thanks. i get the same problem when using dagger 2.11 & realm 3.3.2, but now it works
@singamasae I got the same problem.Can you tell me how did you resolve this issue?
@sbLaughing I assume following the instructions in https://github.com/realm/realm-java/issues/4650#issuecomment-301743174
Hi,
here is my Gradle code
apply plugin: 'maven' apply plugin: 'com.android.library'
//apply plugin: 'io.fabric'
apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-android-extensions'
I am trying to add a dagger in my root library and got an error as below. Please, anyone, suggest
error: cannot find symbol import com.example.simpledagger.di.components.DaggerAppComponent;
Check the compiler output for errors in the Build tab.
Hi, I'm using dagger 2.10 and realm 3.2.0 but after add realm dagger can't generate Dagger*Component. I'm for test remove realm dependency from .gradle file, after this work correctly It's project gradle file