Android Databinding : package does not exist

前端 未结 15 1293
暗喜
暗喜 2020-12-06 04:19

I\'m trying to use data-binding with Android.

I can not anymore build my project. I got this error :

\"Error:(13, 46) error: package ch.compan

15条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 05:01

    if you tried this steps

    1. invalidate/restart`
    2. keeping this properties in gradel.properties
    android.databinding.enableV2=false
    android.enableExperimentalFeatureDatabinding=true
    

    and checking all xml files looks good. then you should go with this solution, add below code in project level build.gradle

        allprojects {
        gradle.projectsEvaluated {
            tasks.withType(JavaCompile) {
                options.compilerArgs << "-Xmaxerrs" << "1000"
            }
        }
    }
    

    this will give you exact error where you have actual error explanation: above code will increase the size of the compile error

提交回复
热议问题