Android Studio not Working After update 4.0.1

Viewed 998

After update to Android Studio 4.0.1, my total Android Studio stop working! The display cannot resolve symbol ‘AppCompatActivity’

enter image description here

enter image description here

and when click on AppCompatActivity display

When I click on Setup JDK open Select Project SDK Select any Android API and click the OK button nothing happens. If I click on the Configure button Configure SDK cannot be changed here. enter image description here

If I want to open SDK Manager from Tools menu nothing opens. Also, the Settings option can’t be opened from the File menu. But my previous version Android Studio works properly. But after I've updated all of my projects, the same problem persists. What can I do now? Please help me?

5 Answers

Somehow Invalidate caches and restart did not fix it for me. I had to manually delete everything from .idea/caches/ folder in the project's root folder. That did the trick.

Steps that worked for me:

  1. [Windows+R] -> %USERPROFILE%
  2. Delete folders .android and .AndroidStudio4.0
  3. Open Android Studio, don't import settings, setup SDK anew (you can target it to where it already resides, so you wouldn't have to download it again), create a new basic project, check if it builds correctly. If it does, then your project will build fine as well.

I've resolved the issues while facing issues in some plugin not supported for android studio 4.0.1. Could you please check it and disable the plugin.

I hope it's working fine.

I faced same problem , delete file called ".android 4.0" from appdata and reopen android studio without load any configuration and start as new

I faced the same problem, but invalidating cache and deleting the .iml file and .idea directory (watch out for code styles, dictionary, etc) didn't help.

The problem was solved when I downgraded the Gradle plugin to classpath 'com.android.tools.build:gradle:4.0.0' (from 4.0.1) and then again set the project SDK as shown in OP's screenshot.

Related