androidandroid-studiokotlinimportandroid-gradle-plugin

import kotlinx.android.synthetic.main.activity_main is not working


Import kotlinx greyed out

enter image description here

I think i try nearly everything. Reinstall Android Studio, Invalide Cache, new Project same Problem.

i just can't find the Solution


Solution

  • Can you try

    • File | Invalidate Caches / Restart
    • Deleting .idea folder
    • Clean
    • Re-import the project

    OR just remove apply plugin: 'kotlin-android-extensions' , sync gradle plugin and then I added it again.