Search code examples
androidandroid-studiobindingandroid-databinding

Enable viewBinding feature failed (Android Studio 3.6)


I have installed Android Studio 3.6 Canary 12 and I want to use viewBinding feature

According to the documentation, I put this code in my build.gradle (app module)

android {
   ...
   viewBinding.enabled = true
   ...
}

But I get this error

A problem occurred evaluating project ':app'.
> Could not get unknown property 'viewBinding' for object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension.

Need help ! Thanks !


Solution

  • Thanks for you support !

    I've solved it by using Android Gradle Plugin 3.6.0-alpha12