首页 文章

React Native:任务执行失败':app:processDebugResources'

提问于
浏览
0

\ android \ app \ build \ intermediates \ manifests \ full \ debug \ AndroidManifest.xml:61:AAPT:错误:资源mipmap / ic_notif(aka ...:mipmap / ic_notif)未找到 . 错误:处理清单失败 . FAILURE:构建因异常而失败 . 出了什么问题:任务执行失败':app:processDebugResources' . 无法处理资源,请参阅上面的aapt输出以获取详细信息 . 尝试:使用--stacktrace选项运行以获取堆栈跟踪 . 使用--info或--debug选项运行以获取更多日志输出 . 使用--scan运行以获得完整的见解 .

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.melkana">

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

    <application
            android:name=".MainApplication"
            android:label="@string/app_name"
            android:icon="@mipmap/ic_launcher"
            android:allowBackup="false"
            android:theme="@style/AppTheme">

        <meta-data android:name="com.google.firebase.messaging.default_notification_icon"
                   android:resource="@mipmap/ic_notif"/>
        <meta-data android:name="com.google.firebase.messaging.default_notification_channel_id"
                   android:value="my_default_channel"/>

        <service android:name="com.evollu.react.fcm.MessagingService" android:enabled="true" android:exported="true">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT"/>
            </intent-filter>
        </service>

        <service android:name="com.evollu.react.fcm.InstanceIdService" android:exported="false">
            <intent-filter>
                <action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
            </intent-filter>
        </service>


        <meta-data
                android:name="com.google.android.geo.API_KEY"
                android:value="AIzaSyAYdeHDHPzBsliCXiPMScp-Jv_LOR3e98M"/>
        <activity
                android:name=".MainActivity"
                android:label="@string/app_name"
                android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
                android:windowSoftInputMode="adjustResize"
                android:launchMode="singleTop"
        >
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/>
    </application>

</manifest>

1 回答

  • 0

    这对我有所帮助 . 对于有此问题的任何人,请转至 android/app/src/main/res/mipmap-(hdpi/mdpi/xhdpi/xxhdpi) 全部,复制 ic_launcher 并将其重命名为 ic_notif .

    enter image description here

相关问题