Android错误记录(持续更新)

(1)Program type already present: android.support.v4.app.ActionBarDrawerToggle$DelegateProvider
Message{kind=ERROR, text=Program type already present: android.support.v4.app.ActionBarDrawerToggle$DelegateProvider, sources=[Unknown source file], tool name=Optional.of(D8)}

错误提示信息:

All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 21.0.0. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:support-v4:21.0.0 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).

大概意思就是因为版本问题有冲突导致的不兼容,应该是导入的recycler view的依赖和v7包有冲突

gradle中v7包有红线但是不影响编译

Android错误记录(持续更新)

替换一个可以支持v7包的recyclerview依赖就好了:

Android错误记录(持续更新)

 

上一篇:List of numerical libraries,Top Numerical Libraries For C#


下一篇:java – 缺少第三方库阻止您使用Scala?