Cannot run instrumentation tests after I introduced databinding

前端 未结 1 474
小蘑菇
小蘑菇 2021-02-08 15:40

I\'m getting

Warning: library class android.databinding.DataBindingUtil depends on program class android.databinding.DataBindingComponent

I get this

相关标签:
1条回答
  • 2021-02-08 16:10

    Try adding the following to your proguard config:

    -dontwarn android.databinding.**
    -keep class <whatever your package name in AndroidManifest is>.databinding.** {
        <fields>;
        <methods>;
    }
    

    The first line gets rid of the warning, and the second tells proguard to not mess with any of the generated classes.

    0 讨论(0)
提交回复
热议问题