good night.
I come to this page with a serious problem with android studio. What exactly is it?:
It turns out that I am developing an app, and after finishing fixing some bugs after a long time, I finally pay attention to android studio's constant suggestions to update the IDE. I obediently pay attention and start updating (Android Studio 3.0)... all good.
When I open my project that I was working on, the IDE suggests me to change the gradle version to be able to use the instant run and other functions...
My worst mistake... listen to him.
Now android studio throws me lots of unexplained errors in my AndroidManifest.xml file :
And in my classes I have the following error:
And again I swear to you: I haven't touched the code at all, just what the IDE did was change the gradle version to 3.0.0 because, as they say, it's a "recommended" practice.
How do I solve this headache with this IDE?
Regularly the red R's indicate that there is a problem in the resources.
Android, red "R's" throughout the code
but in this case if you carefully review the file that shows your error message, it is the file
AndroidManifest.xml
, but in this case the one inside/build
that contains the generated files.The problem you present is common when updating our Android Studio or its components, in this case performing:
Build
>Clean Project
Build
>Rebuild Project
may not work...
It is recommended to invalidate cache and restart Android Studio.
Actually it is not an error to update, in fact what Android Studio suggests is to update to the latest stable versions, in order to take advantage of the latest features.
You must rebuild the project, when Android Studio does not detect the "R" go to
Build -> Clean Project
and thenBuild -> Rebuild Project
and at least the problems ofCannot Resolve symbol