我的依赖项有问题,我不知道如何解决它。我对Android Studio本身的内部作品并不精通。
它涉及到这个:
implementation 'com.android.support:appcompat-v7:26.1.0'
我需要一个日期时间选择器,我使用这个(https://github.com/wdullaer/MaterialDateTimePicker),指令只是说复制到依赖所以我做了。
我复制了
compile 'com.wdullaer:materialdatetimepicker:3.5.1'
像往常一样同步
然后这发生了
All com.android.support libraries must have the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.0.2, 26.1.0. Examples include com.android.support:animated-vector-drawable:27.0.2 and com.android.support:cardview-v7:26.1.0
我不知道这是怎么回事,因为我上次遇到这个是我加入的时候
implementation 'com.android.support:cardview-v7:26.1.0'
它与AppCompat的版本不同,因此更改版本修复了它。所以我尝试通过添加来修复它
implementation 'com.android.support:animated-vector-drawable:26.1.0'
因为它是错误消息中的一个,但它没有做任何事情。我很困惑,因为我没有添加任何与implementation
这听起来可能没有凝聚力,但我希望你理解
com.wdullaer:materialdatetimepicker:3.5.1
使用支持库v 27.0.2
https://github.com/wdullaer/MaterialDateTimePicker/blob/master/library/build.gradle
您需要使用相同的支持库版本。用26.1.0
替换所有出现的27.0.2