Unresolved reference: BR (Android Studio)

后端 未结 4 2074
孤独总比滥情好
孤独总比滥情好 2021-01-01 13:47

My top level build.gradle:

buildscript {
    ext.kotlin_version = \'1.2.41\'
    ext.lifecycle_version = \"1.1.1\"
    repositories {
        google()
               


        
4条回答
  •  甜味超标
    2021-01-01 14:28

    For Android Studio 3.3, Gradle 3.3.0 and Databinding v2, the only line that needs to be added to fix this issue is in your (app's or modules) build.gradle:

    apply plugin: "kotlin-kapt"
    

提交回复
热议问题