0

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 Answers4

3

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"
    
SagarDihora
  • 136
  • 4
0

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.

  • Yes this would work too, however in my case simply upgrading my kotlin version seemed to work! Thankyou for your answer though!! – darthwithap Jul 09 '21 at 07:42
0

Just make File -> Invalidate caches and restart

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

AndrewS
  • 7,418
  • 8
  • 35
  • 50
0

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

Randy Reiza
  • 153
  • 1
  • 7