java - 工具 :replace=android:value to <meta-data> element at AndroidManisfest. xml:25:5-17:34 覆盖

标签 java android xml

错误:任务 ':app:processDebugManifest' 执行失败。

Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.0) from [com.android.support:design:25.3.0] AndroidManifest.xml:27:9-31 is also present at [com.android.support:support-v4:25.3.1] AndroidManifest.xml:27:9-31 value=(25.3.1). Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:34 to override.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.helploger.www.swipeview">
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
    <application
        android:fullBackupContent="false"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:theme="@style/AppTheme.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT"
                   />
            </intent-filter>
        </activity>
    </application>

</manifest>

最佳答案

您正在使用多个版本的 Android 支持库:

将所有支持库移动到一个版本 25.3.1 或 25.3.0 将所有支持库移至 25.3.1 后,我遇到了完全相同的错误,我的错误已被删除。

关于java - 工具 :replace=android:value to &lt;meta-data> element at AndroidManisfest. xml:25:5-17:34 覆盖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43885077/

相关文章:

java - 使用AspectJ拦截android中的第三方函数

java - 接口(interface)及其子类及其类型和子类型的通用迭代器

java - 如何在Intellij Idea中更改SVN中的jar?

android - 在哪里检查 Android 权限?

java - 更改 GridView 中单元格的大小?

java - java返回XML结构中重复标签的列表

java - Hibernate 期望 HQL 中的参数类型错误

android - 无法为 retrofit2.Response<...> 创建调用适配器

java - ImageView 中的图像被拉伸(stretch) - Android

jquery - 使用 jquery/ajax 从 xml 到 html 表