1、问题
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.1.1, 27.0.2.
Examples include com.android.support:animated-vector-drawable:27.1.1 and com.android.support:support-v13:27.0.2 less... (Ctrl+F1)
There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs.
One such incompatibility is compiling with a version of the Android support libraries that is not the latest version
(or in particular, a version lower than your targetSdkVersion).
2、解决办法
1、查看工程里面External Libraries
1536044848(1).png
从中可以发现有不同的版本号
2、更改对应的引入库版本
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.android.support:support-v13:27.1.1'
河马过河微信公众号.jpg
网友评论