janishar / android-mvvm-architecture

This repository contains a detailed sample app that implements MVVM architecture using Dagger2, Room, RxJava2, FastAndroidNetworking and PlaceholderView
https://janisharali.com
Apache License 2.0
2.94k stars 936 forks source link

DaggerAppComponent Not able to build #73

Open JayGreenApex opened 4 years ago

JayGreenApex commented 4 years ago

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

amitshekhariitbhu commented 4 years ago

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

JayGreenApex commented 4 years ago

@amitshekhariitbhu

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

JayGreenApex commented 4 years ago

@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 commented 4 years ago

@amitshekhariitbhu

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