Android data binding dependency conflict with the support library

こ雲淡風輕ζ 提交于 2019-12-04 22:40:35

There is a defect logged for this, which resulted in a more helpful error message: https://issuetracker.google.com/issues/37128971

The solution is to add an explicit dependency on support-v4 in your build.gradle for the support library version that you're using, so if you are using support library 25.1.0:

compile 'com.android.support:support-v4:25.1.0'

As @gopalanrc suggests, starting with Android Gradle Plugin 3.0.0 you should typically use the following instead:

implementation 'com.android.support:support-v4:25.1.0'

If you are using gradle 3.0 or greater, add it as below.

implementation 'com.android.support:support-v4:<the_version>'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!