Databinding not work together with viewbinding in Kotlin
问题 Android Studio 3.6 build.gradle: buildscript { ext.kotlin_version = '1.3.50' repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.6.0-beta01' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" in app/build.gradle: android { viewBinding.enabled = true dataBinding { enabled = true } in my activity: import android.os.Bundle import android.util.Log import androidx.appcompat.app.AppCompatActivity import androidx.viewpager2.widget