由于导入阿里的路由框架,出现编译问题,主要是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包剔除。