Recently I have updated android studio with Android Studio 4.1, but after updating, the studio isn't showing errors in IDE with red underline or red bar right side. Every time I run the app it throws a single error after compilation. So it's very difficult to say where is the error
Does anyone have an idea of what to do?
NOTE: invalidate cache & restart, sync project, clean, rebuild not working
IDE Error messages can also appear after an attempt to upgrade or swap an IDE drive with another drive not specifically made for the computer. The error may occur due to an incorrect ;master/slave setting on the drive, or for other reasons.
If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin.
No, but it's based on Intellij IDEA.
Clear your project directory Obviously, try to clean your project from android studio : “Build -> Clean Project”. This will clear your build folders. Clear the cache of Android Studio using “File -> Invalidate Caches / Restart” choose “Invalidate and restart option” and close Android Studio.
In Windows go to C:\Users\{USER_NAME}\AppData\Roaming\Google\
and delete the AndroidStudio4.1
folder and start your Android studio then it will ask to import settings, do not import any settings, instead continue with setup and the problem will be solved.
For Ubuntu users If your android studio not opening properly after updated. Just press CTR+H in FileManager (show hidden files). now you can see the .local file. now go to remove the google file from there. (Path -> local/share/google).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With