簡體   English   中英

工具:replace = android:value to <meta-data> AndroidManisfest.xml:25:5-17:34中的元素覆蓋

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

錯誤:任務':app:processDebugManifest'執行失敗。

清單合並失敗:來自[com.android.support:design:25.3.0]的屬性meta-data#android.support.VERSION@value value =(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)。 建議:在AndroidManifest.xml:25:5-27:34中添加'tools:replace =“android:value”'來覆蓋。

<?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后,我發生了完全相同的錯誤我的錯誤已被刪除。

如果你們在Ionic / Ionic 3 / Cordova中遇到這個錯誤,請檢查project.properties文件中的以下行。 將加號更改為您的版本。

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM