Why are my files still being 'Analyzed' in Android studio, intellisense and autosuggest doesnt seem to work

1.4k Views Asked by At

For this particular project, Android studio just shows analyzing files, doesn't show any errors and the IntelliSense is also not auto-suggesting. I have tried to invalidate cache/ restart, checked that android studio is not in power mode, and also deleted the project locally and cloned it again, what can be the issue?

It was working fine till 2 days ago but today when I opened the app and tried to build it and make some changes to a few files, it just wont work. I am on Android Studio 4.2.1 on macOS Big Sur 11.2.1

If I create a new project the studio is working fine but just for this project its not working

Here are the screenshots

enter image description here

enter image description here

Any help is much appreciated! Thanks!!

4

There are 4 best solutions below

2
SagarDihora On BEST ANSWER

I have posted the same answer in another post, you can take the reference from the below link.

https://stackoverflow.com/a/67984260/11414681

You just need to Upgrade the latest kotlin version.

  1. Upgrade the dependency in the project's build.gradle file.

     classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10"
    
  2. Upgrade the dependency in the app's build.gradle file.

     implementation "org.jetbrains.kotlin:kotlin-stdlib:1.5.10"
    
1
Rupesh Boda On

Delete .idea , .gradle andr buid folder from your project path. After delete your project from Android Studio and re-open and its work. Sometimes android studio has been not working properly so ignore this bugs its nothing.

0
AndrewS On

Just make File -> Invalidate caches and restart

Check my answer here, stackoverflow.com/a/68755611/2281717

0
Randy Reiza On

In my case, I just update all dependencies on my Android App Project. And it's working