janishar/android-mvvm-architecture

DaggerAppComponent Not able to build

JayGreenApex opened this issue · 4 comments

@amitshekhariitbhu

I am having Android app with MVVM architecture.

I need to have use RoomDatabase and i came to your repo and taken reference of it.

Setup everything as of your demo for Room Database and tried to build my Project.

But suddenly DaggerAppComponent no more able to build now. I crossed check everything same as of your demo and required setup is done.

Can you help me please.

error: cannot find symbol import com.iam.app.di.component.DaggerAppComponent;

@JayGreenApex Have you rebuild the project?
Also refer to this: janishar/android-mvp-architecture#1

@amitshekhariitbhu

I have cleaned and rebuild project lots of time but no luck.

@amitshekhariitbhu

I am getting something like this.

Gradle may disable incremental compilation as the following annotation processors are not incremental: dagger-compiler-2.16.jar (com.google.dagger:dagger-compiler:2.16), dagger-android-processor-2.16.jar (com.google.dagger:dagger-android-processor:2.16). Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental. /home/pc-30/Jay/ContactInventoryApp/app/src/main/java/com/iam/app/app/ContactInventoryApp.java:9: error: cannot find symbol import com.iam.app.di.component.DaggerAppComponent;

@amitshekhariitbhu

If i remove Room Database Setup then it us getting build successfully otherwise not. Can you help me please.