import kotlinx.android.synthetic.main.activity_main is not working
问题 Import kotlinx greyed out I think i try nearly everything. Reinstall Android Studio, Invalide Cache, new Project same Problem. i just can't find the Solution 回答1: 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. 回答2: Check "build.gradle(:app)" file, plugins { id 'com.android.application' id 'kotlin-android' } if kotlin extension is missing,