Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio 4.1 is not showing errors into IDE

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

like image 478
Priyanka Avatar asked Oct 14 '20 08:10

Priyanka


People also ask

What is IDE error?

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.

Why is Android Studio not working?

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.

Is Android Studio a Java IDE?

No, but it's based on Intellij IDEA.

How do I clean my Android project?

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.


2 Answers

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.

like image 78
Lathesh Avatar answered Nov 02 '22 22:11

Lathesh


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).

like image 31
Tippu Fisal Sheriff Avatar answered Nov 02 '22 22:11

Tippu Fisal Sheriff