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

cannot find symbol variable DaggerTestMyApplication_TestApplicationComponent #3

Open
ghost opened this issue Apr 18, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 18, 2017

Error:(17, 21) error: cannot find symbol variable DaggerTestMyApplication_TestApplicationComponent

@darekg11
Copy link

darekg11 commented May 24, 2017

Hey, just in case anybody else having the same issue - after hour of googling and digging into Google discussion group. The solution is:

  1. Add classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' to build.gradle at top level.
  2. Add apply plugin: 'com.neenbedankt.android-apt'`` to build.gradle``` at app level.
  3. Add testApt "com.google.dagger:dagger-compiler:YOUR_VERSION" to build.gradle at app level.

Now everything should be generated correctly after rebuild.

@lawloretienne
Copy link

I have defined the TestApplicationComponent outside of my TestApplication class. But now i have an issue when i call DaggerTestApplicationComponent.builder(), it doesn't recognize the DaggerTestApplicationComponent. Why is that?

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