You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Yesterday I finished migrating my project to Dagger2 from Dagger1, except a few errors with @singleton annotations. I commented all of them, project was built and successfully launched on Android emulator and I leave the resolving an issue with singleton annotation for today's evening. Unfortunately today, when I uncommented back @singleton annotations in the application-wide @component interface and tried to build the project, it fails with the following message:
Error:Execution failed for task ':nt2:compileDebugJava'.
Attempts to clean, rebuild, invalidate project, comment @singleton annotations back was unsuccessful. I can delete AppComponent.java file, but in this case compiler complains for missed class that it can resolve in module, application and activity classes.
I noticed that MoreTypes is a class of com.google.auto project. Checked its sources on GitHub and can't find the method asTypeElements() with 2 arguments of type Types and Iterable. Looks like AndroidStudio downloaded the (latest?) snapshot version of com.google.auto project to resolve dependency required by Dagger2, but two-argument version of AsTypeElements method is no more present there.
Can you please provide any solution to fix this issue?
The text was updated successfully, but these errors were encountered:
Hi,
Yesterday I finished migrating my project to Dagger2 from Dagger1, except a few errors with @singleton annotations. I commented all of them, project was built and successfully launched on Android emulator and I leave the resolving an issue with singleton annotation for today's evening. Unfortunately today, when I uncommented back @singleton annotations in the application-wide @component interface and tried to build the project, it fails with the following message:
Error:Execution failed for task ':nt2:compileDebugJava'.
Attempts to clean, rebuild, invalidate project, comment @singleton annotations back was unsuccessful. I can delete AppComponent.java file, but in this case compiler complains for missed class that it can resolve in module, application and activity classes.
I noticed that MoreTypes is a class of com.google.auto project. Checked its sources on GitHub and can't find the method asTypeElements() with 2 arguments of type Types and Iterable. Looks like AndroidStudio downloaded the (latest?) snapshot version of com.google.auto project to resolve dependency required by Dagger2, but two-argument version of AsTypeElements method is no more present there.
Can you please provide any solution to fix this issue?
The text was updated successfully, but these errors were encountered: