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

Unresolved reference: DaggerAppComponent #3

Open
balakzde opened this issue Oct 19, 2017 · 2 comments
Open

Unresolved reference: DaggerAppComponent #3

balakzde opened this issue Oct 19, 2017 · 2 comments

Comments

@balakzde
Copy link

Hi, I am pretty new to android and I wanted to include dependecy injection in our projects, so I ended up trying dagger. My problem is I am not able to run any tutorials I found online. This one looks simple enough, but I was not able to build it.
I keep getting Unresolved reference: DaggerAppComponent even though I did not change a single line of code.
How do I force dagger to generate classes like it is supposed to do?

@marcoRS
Copy link
Owner

marcoRS commented Oct 19, 2017 via email

@balakzde
Copy link
Author

$ ./gradlew clean build

Configure project :app
The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead.
The getTestClassesDir() method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the getTestClassesDirs() method instead.
The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead.

Task :app:compileDebugKotlin
Using kotlin incremental compilation

e: C:\Users\balak\AndroidStudioProjects\volley-examples\app\src\main\java\com\droidtitan\volley\App.kt: (6, 33): Unresolved reference: DaggerAppComponent
e: C:\Users\balak\AndroidStudioProjects\volley-examples\app\src\main\java\com\droidtitan\volley\App.kt: (15, 17): Unresolved reference: DaggerAppComponent

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugKotlin'.

Compilation error. See log for more details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED in 20s
25 actionable tasks: 25 executed

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