any solution on this? (clearing caches, reimports ...
# android
k
any solution on this? (clearing caches, reimports not helping)
e
Make sure you've applied the kotlin-android-extensions plugin in your app module build.gradle file and then try to sync
r
when you rebuild your project is it successful? Also Is the View your trying to access part of the layout that was inflated?
a
j
For me what resolves this in AS, is going to File - Sync Project with Gradle files, and also running the
androidDependencies
task. Occasionally when both of these fail, I'll delete all my iml files and delete all build folders, then I'll File -> Open the project's root directory