java tool:replace=android:value to <meta-data> 元素在 AndroidManisfest.xml:25:5-17:34 覆盖

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43885077/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-03 07:47:36  来源:igfitidea点击:

tool:replace=android:value to <meta-data> element at AndroidManisfest.xml:25:5-17:34 to override

javaandroidxml

提问by Muhammad Ahmed Ali Baig

Error:Execution failed for task ':app:processDebugManifest'.

错误:任务 执行失败':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.

清单合并失败:属性 meta-data#android.support.VERSION@value value=(25.3.0) from [com.android.support:design:25.3.0] AndroidManifest.xml:27:9-31 也出现在[com.android.support:support-v4:25.3.1] AndroidManifest.xml:27:9-31 value=(25.3.1)。建议:将 'tools:replace="android:value"' 添加到 AndroidManifest.xml:25:5-27:34 的元素以覆盖。

<?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>

回答by Muhammad Ahmed Ali Baig

You are using multiple versions of the Android Support Libraries:

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

Move all your support libraries to one version 25.3.1 or 25.3.0 I was having an exact same error after moving all support libraries to 25.3.1 my error was removed.

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

回答by Memphis335

If you guys get this error in Ionic / Ionic 3 / Cordova, check the below line in your project.properties file. Change the plus to your version.

如果你们在 Ionic / Ionic 3 / Cordova 中遇到此错误,请检查 project.properties 文件中的以下行。将加号更改为您的版本。

cordova.system.library.7=com.android.support:support-v4:+