简体   繁体   中英

Dagger 2 not creating component after re-run

Im maintaining an Android app with Android Studio. This application is multidexed.

After a clean rebuild and installing on emulator, everything is fine. But if i make any change (even the slightest) and I re-run the app on emulator (or If i compile only the affected module), Dagger does not create DaggerApplicationComponent and the class that it refers to is not compiled, so on run time I have a ClassNotFoundException, but no exception on compile time.

Any ideas?

Looks like Android Studio is deleting Dagger generated files when I run the App and some code has changed. Why?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM