Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to see Dagger errors #412

Closed
austynmahoney opened this issue Jul 20, 2016 · 1 comment
Closed

Unable to see Dagger errors #412

austynmahoney opened this issue Jul 20, 2016 · 1 comment

Comments

@austynmahoney
Copy link

austynmahoney commented Jul 20, 2016

Dagger2 v2.5
android-apt v1.8

Whenever I am messing around with my Modules and Components, I sometimes need a Dagger annotation processor error message to figure out what is going on. The problem is, whenever I compile with an incorrect Dagger setup I get error messages unrelated to the root cause. The error messages given in Android Studio are just missing symbol errors because the annotation processing failed.

Compiler error messages:

error: cannot find symbol class DaggerApplicationComponent
{redacted}/app/src/main/java/{redacted}/ProfileSettingsFragment.java
Error:(7, 50) error: package {redacted}.databinding does not exist
Error:(16, 9) error: cannot find symbol class FragmentProfileSettingsBinding

This databinding symbol error is then repeated about 100 times, and the actual problem that made the annotation processing fail is nowhere to be found.

What is eating the Dagger errors? Are they being fed to Android Studio properly?

@ronshapiro
Copy link

Looks like a dupe of #306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants