- Android Studio 3.2.1: Cannot resolve annotated class: error: cannot find symbol #2188
- Comments
- alexei-28 commented Dec 15, 2018 •
- WonderCsabo commented Dec 15, 2018
- alexei-28 commented Dec 15, 2018 •
- WonderCsabo commented Dec 15, 2018
- alexei-28 commented Dec 15, 2018
- WonderCsabo commented Dec 15, 2018 •
- alexei-28 commented Dec 15, 2018
- dodgex commented Dec 15, 2018
- alexei-28 commented Dec 15, 2018
- dodgex commented Dec 16, 2018
Android Studio 3.2.1: Cannot resolve annotated class: error: cannot find symbol #2188
Comments
alexei-28 commented Dec 15, 2018 •
Android Studio 3.2.1, Gradle 4.6
In project build.gradle:
In my app/build.gradle:
But I get error:
error: cannot find symbol InvoicesV2Fragment_
The text was updated successfully, but these errors were encountered:
WonderCsabo commented Dec 15, 2018
For that constant, you can just use InvoicesV2Fragment.ACTION_CHANGED_COUNT_ITEMS_IN_CART . Only use the generated class when it is really necessary.
alexei-28 commented Dec 15, 2018 •
For that constant, you can just use InvoicesV2Fragment.ACTION_CHANGED_COUNT_ITEMS_IN_CART . Only use the generated class when it is really necessary.
OK. Now InvoicesV2Fragment success compile. But I get another error in another class:
Now in class MainApp I get error:
error: cannot find symbol InvoicesV2Fragment_
WonderCsabo commented Dec 15, 2018
It seems the subclass is not generated. Can you post the full build log here?
alexei-28 commented Dec 15, 2018
WonderCsabo commented Dec 15, 2018 •
These two versions should be the same.
alexei-28 commented Dec 15, 2018
These two versions should be the same.
Not help. Same error.
dodgex commented Dec 15, 2018
Use 4.5.2 for both 😉
alexei-28 commented Dec 15, 2018
Yes, now it’s work!
Questions:
- Why both libs must have same version. Exact 4.5.2 ?
- Why not work when both libs has same version 4.1.0 ?
- Why both libs must have same version?
dodgex commented Dec 16, 2018
1+2) 4.5.2 (released late October this year) is the latest Version of Android annotations while 4.1.0 is a pretty old version (released in early 2016)
also the 4.5.0+ releases have some fixes for compatibility issues with Android Studio 3.2.x — this is why you have to use the latest version together with Android Studio 3.2.
Источник