android-mvvm-architecture icon indicating copy to clipboard operation
android-mvvm-architecture copied to clipboard

DaggerAppComponent Not able to build

Open JayGreenApex opened this issue 5 years ago • 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 avatar May 29 '20 12:05 JayGreenApex

@JayGreenApex Have you rebuild the project? Also refer to this: https://github.com/MindorksOpenSource/android-mvp-architecture/issues/1

amitshekhariitbhu avatar May 29 '20 12:05 amitshekhariitbhu

@amitshekhariitbhu

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

JayGreenApex avatar May 29 '20 12:05 JayGreenApex

@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;

JayGreenApex avatar May 29 '20 13:05 JayGreenApex

@amitshekhariitbhu

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

JayGreenApex avatar May 29 '20 13:05 JayGreenApex