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.
Thanks.
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.
Thanks.
2
Answers
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 justrun the app
as follow: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