[AS尝龟]导入RecyclerView后错误解决方法:Error:Execution failed for task ':app:processDebugManifest'. > Manifest
来源:互联网 发布:千峰php培训多少钱 编辑:程序博客网 时间:2024/05/21 19:43
※这个解决方案只适用于在导入RecyclerView依赖库后出现的错误。
错误如下:
Error:Execution failed for task ':app:processDebugManifest'.> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:recyclerview-v7:26.0.0-alpha1] AndroidManifest.xml:24:9-38 value=(26.0.0-alpha1).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:34 to override.
手动导入recyclerView依赖库后,报这个错误,其实错误就在于你的recyclerview的版本太高,和当前使用版本不匹配。
由于我之前在使用recyclerview的时候,一直使用的sdk版本都是26的,而导入recyclerview的时候当前的recyclerview依赖库版本刚好也是26的,因此刚好匹配,不出错。当我手动把sdk版本换成低一点的版本的时候(此处我手动改成了25,顺便也把appcompat版本改成对应的),重新导入recyclerview依赖库,此时默认导入的都是当前最新版本也就是26的,就会报错,版本不匹配。
解决方案:
在build.gradle中导入recyclerview依赖库后,将recyclerview版本改成和appcompat版本一致即可。
阅读全文
0 0
- [AS尝龟]导入RecyclerView后错误解决方法:Error:Execution failed for task ':app:processDebugManifest'. > Manifest
- AS导入项目出现Error:Execution failed for task ':app:processDebugManifest'.错误
- Manifest merger failed : Error:Execution failed for task ':app:processDebugManifest'.
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merg
- android studio导入项目出错:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger
- android studio导入项目出错:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger
- AS导入aar包报错Error:Execution failed for task ':app:processDebugManifest'.
- Error:Execution failed for task ':app:processDebugManifest'.错误解决
- Error:Execution failed for task ':app:processDebugManifest'
- Error:Execution failed for task ':app:processDebugManifest'.
- Error:Execution failed for task ':app:processDebugManifest'.
- Error:Execution failed for task ':app:processDebugManifest'
- Error:Execution failed for task ':app:processDebugManifest'.
- Error:Execution failed for task ':app:processDebugManifest'.
- Error:Execution failed for task ':app:processDebugManifest'
- Error:Execution failed for task ':app:processDebugManifest'
- Error:Execution failed for task ':app:processDebugManifest
- 四连通与八连通
- Linux上Redis加入服务(开机自启)
- (转载)dubbo+zookeeper集群配置
- 三维数组合并为二维数组并求出某个字段的总和
- SVM问题小结
- [AS尝龟]导入RecyclerView后错误解决方法:Error:Execution failed for task ':app:processDebugManifest'. > Manifest
- MySQL字符函数
- (python)斐波那契数列
- JS 关于(function(w) {...})(window)写法的理解——立即执行函数
- 4. python 子类调用父类方法
- Spring定时任务开发,实现动态修改时间参数,手动开启关停等
- mongodb修改最大连接数
- TCP/IP四层模型
- 点击验证倒计时