Suggestion: add 'tools:replace="android:value"' to <meta-data> element 报错解决方案
来源:互联网 发布:淘宝搞笑收货人名字 编辑:程序博客网 时间:2024/06/06 02:41
Error: Attribute meta-data#android.support.VERSION@value value=(25.3.1) from AndroidManifest.xml:24:9-31 is also present at AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1). Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:22:5-24:34 to override. app main manifest (this file), line 23
错误为:android.support.VERSION出现在两个位置,官方建议为 在AndroidManifest.xml:22:5-24:34 加入tools:replace="android:value" 到 <meta-data>
然而这个方案并不管用。。
于是有了第二种方案
把下面的代码写到 build.gradle "app level"里,可以简单放在 dependencies后面,把之前的方案清干净
顺利解决,开森!
阅读全文
0 0
- Suggestion: add 'tools:replace="android:value"' to <meta-data> element 报错解决方案
- Manifest merger failed Suggestion: add 'tools:replace=“Android:value”' to <meta-data> element at And
- Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-2
- Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-2
- Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-2
- Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:22:5-2
- add 'tools:replace="android:value"' to <meta-data> element问题的解决
- Suggestion: add 'tools:replace="android:icon"' to element
- add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:34 to over
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xm
- Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:28:5
- Suggestion: add 'tools:replace="android:label"'
- 使用Android Studio时报错 Manifest merger failed...Suggestion: add 'tools:replace="android:label"'
- 【Android】Suggestion: use tools:overrideLibrary="" to force usage
- 文章标题
- Oracle:将DMP文件导入到Oralce数据库
- JavaScript的引用类型2(Function类型)
- tf.summary
- Spring 注解@Value详解
- Suggestion: add 'tools:replace="android:value"' to <meta-data> element 报错解决方案
- 【转载】MyBatis学习
- 关于Label中文字的居中
- ThinkPHP5 整合微信扫码支付
- poj-3744
- gpio子系统之2440
- 网络营销实战课-文案实操1
- rpm包创建以及yum仓库的创建应用简单版
- python 区分对象和字典