Kotlin-android: unresolved reference databinding

后端 未结 16 1027
借酒劲吻你
借酒劲吻你 2020-12-02 16:23

I have following fragment class written in Java using the new databinding library

import com.example.app.databinding.FragmentDataBdinding;

public class Data         


        
16条回答
  •  执笔经年
    2020-12-02 17:04

    Update 2: This is a really old answer, instead refer to lrampazzo's answer.

    It works with 1.0-rc4, put

    kapt 'com.android.databinding:compiler:1.0-rc4' 
    

    into your dependencies

    Thanks Ghedeon, for the link in comments

    Update: Here's a really simple hello world example project

提交回复
热议问题