【发布时间】:2025-12-27 15:55:10
【问题描述】:
\android\app\build\intermediates\manifests\full\debug\AndroidManifest.xml:61: AAPT: error: resource mipmap/ic_notif (aka ...:mipmap/ic_notif) not found.
错误:处理清单失败。
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>
【问题讨论】:
标签: react-native react-native-android