由于导入阿里的路由框架,出现编译问题,主要是V4包的版本不统一。
编译的保存信息:

gradle文件:

报错信息:
WARNING: Conflict with dependency 'com.android.support:support-media-compat' in project ':LibraryDrawfingerFeature'. Resolved versions for runtime classpath (28.0.0) and compile classpath (25.2.0) differ. This can lead to runtime crashes. To resolve this issue follow advice at https://developer.android.com/studio/build/gradle-tips#configure-project-wide-properties. Alternatively, you can try to fix the problem by adding this snippet to E:\SVNProject\FingerFeatureDemo\LibraryDrawfingerFeature\build.gradle:
从报错信息来看,是阿里的路由框架使用了V4包,版本是25.2.0,但是自己工程里使用了28.0.0的版本,导致版本不统一,解决版本就是将阿里路由框架里的V4包剔除。

本文介绍了一种常见问题的解决方案,即在导入阿里路由框架时遇到的V4包版本不统一导致的编译错误。通过调整阿里路由框架中的V4包版本,确保与项目中使用的版本一致,从而避免运行时崩溃的风险。
1万+

被折叠的 条评论
为什么被折叠?



