skip to Main Content

After cleaning the Android-Studio cache (File-> Invalidate Cache/Restart)
Kotlin code is not recognized by the Android Studio and code suggestions are not appearing.

enter image description here

Thanks.

2

Answers


  1. Hi and welcome to stack overflow.
    Don’t worry if it happens to you a couple of times. All you have to do is make the project (by clicking the hammer) or just run the app as follow:

    enter image description here

    Login or Signup to reply.
  2. This issue will not be solved through Invalidate cache as it will only clear the project cache, For the perfect solution you must have to clear entire android studio cache.
    The only solution works in this situation is clearing cache of latest android studio.

    Steps to clear Android studio cache:

    C drive > users > User > AppData Local > Google > latest Android studio version > caches

    Delete all files on caches

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search