DolDurma
DolDurma

Reputation: 17289

adding kotlin-kapt cause of getting Can not resolve symbol DaggerApplicationComponent error

I did not already have any problem with Dagger as far i don't add Realm in my project, after adding that on my project i expect i can build successful my project but i get this error now:

Can not resolve symbol DaggerApplicationComponent

i want to need Realm on my application and i can't remove that, but i dont get any other error on Logcat to know whats problem and i should be fix that and I'm not sure how can i resolve this problem

when i have this lines in build.gradle i dont have problem

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.jakewharton.hugo'
apply plugin: 'com.novoda.bintray-release'

but after adding Realm i get

Configuration with name 'kapt' not found

error, and after adding kotlin-kapt to this file i get

Can not resolve symbol DaggerApplicationComponent

error, for example:

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.jakewharton.hugo'
apply plugin: 'com.novoda.bintray-release'
apply plugin: 'realm-android'

Upvotes: 3

Views: 928

Answers (1)

DolDurma
DolDurma

Reputation: 17289

Problem resolved, after change annotationProcessor to kapt

Upvotes: 3

Related Questions