-
Notifications
You must be signed in to change notification settings - Fork 34
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 resolve symbol DaggerAppComponent #1
Comments
@bananaCaptain This example works correctly I just checked, Did you try to rebuild the project? You have to go Build -> Rebuild project. Remember that these classes are generated at compile-time. |
@erikcaffrey I am just trying to move the CategoryActivityComponent to another package which does not with the CateoryActivity. And then this error come out . I think you should change this line |
@IdioticMadman the library would not have to be a problem maybe you can try rebuild project, you don't need to create or move another component is just a simple example also there are no many dependencies that must be separated and remember maintain the things simples. |
Yeah, That's OK.Thanks |
@erikcaffrey , thanks rebuild is solution. |
Hello, clean and rebuild is not a solution for me, and the error stays there. This is my error log: Error:(8, 47) error: cannot find symbol variable DaggerAppComponent Can anyone suggest me an alternative or a workaround for this? |
The class I also have another sample to learn Dagger 2 -> https://github.com/erikcaffrey/Kata-Dagger2-MarioKart |
I had tried invalidate caches an restart, also clean and rebuild. |
Ctrl+F9 |
I had to clean the project and after that I get this error from Studio, even though the files are present. Tried to Invalidate / Restart, Clean, Rebuild.. still get the error from studio. |
What's error?
…On Tue, Feb 20, 2018 at 6:58 AM, marconealberto ***@***.***> wrote:
I had to clean the project and after that I get this error from Studio,
even though the files are present. Tried to Invalidate / Restart, Clean,
Rebuild.. still get the error from studio.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbZG7u3O8QysBxH46mWuA6oH4nwAnAxVks5tWt15gaJpZM4IBtEs>
.
|
I went through most of the answer on stackoverflow but it looks I broke it. |
compile 'com.google.dagger:dagger:2.8' i will already used this gradle but DaggerAppComponent not support. |
Where is your project address at Github? Let me try.
Homan Huang
…On Wed, May 9, 2018 at 4:36 AM, sandeep287 ***@***.***> wrote:
compile "com.google.dagger🗡$daggerversion"
annotationProcessor "com.google.dagger:dagger-compiler:$daggerversion"
i will already used this gradle but DaggerAppComponent not support.
please help
thanks in advance
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbZG7s3R5RW2F4yxaFivPeGrnHCh_xf2ks5twtTNgaJpZM4IBtEs>
.
|
@sandeep287 Hey man! First of all thanks for visit this repository, I hope you found it useful. I Upgrated the project some minutes ago and it's working 😃. Remember the class DaggerAppComponent is a generated class on compile time so you should do: I hope it solves your problem. |
Invalidate and Restart |
invalidate & cache restart is not valid solution I have started new project setup dagger same problem raise daggerComponent not find the symbols. |
Make Project and Rebuild Project So DaggerAppComponent will be generated . |
1.Clean the project |
If you are in test folder, you don't need to rebuild it again; ignore the red line; run it. For example,
} @module
` |
The text was updated successfully, but these errors were encountered: