当前位置: 首页 > 知识库问答 >
问题:

反应本机:任务执行失败:应用程序:processDebugResources

马弘益
2023-03-14

\android\app\build\中介\清单\完整\调试\AndroidManifest.xml:61: AAPT:错误:资源mipmap/ic_notif(又名...: mipmap/ic_notif)未找到。

错误:处理清单失败。

失败:构建失败,出现异常。

问题所在:任务“:app:processDebugResources”的执行失败。无法处理资源,有关详细信息,请参阅上面的 aapt 输出。

尝试:使用--stacktrac选项运行以获取堆栈跟踪。使用--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个答案

宣弘新
2023-03-14

这对我很有帮助。对于有此问题的任何人,请访问所有四个< code > Android/app/src/main/RES/MIP map-(hdpi/mdpi/xhdpi/xxhdpi),复制< code>ic_launcher并将其重命名为< code>ic_notif。

 类似资料:
  • 任务': app: Process DebugResources'执行失败。 Android资源链接失败/home/mahesh/.gradle/caches/transforms-2/files-2.1/c0fe0d468b2d9842e23d5a9c1c80a565/res/values/values。xml:731:5-756:25:AAPT:error:resource-android:a

  • null 这工作得很好,但对于下面的命令,我得到一个错误 错误: > 错误:任务“:app:InstallRelease”执行失败。 com.android.builder.testing.api.deviceException:com.android.ddmlib.installexception:install_failed_update_incompatible:包io.nativebase

  • 我在“React-Native Run-Android”上面临这个问题。我没有工作我的代码大约2个月。今天,我不得不做一些改变。但我不能在模拟器上运行。 Android/Build.Gradle

  • 我已经按照https://reactnative.dev/docs/environment-setup中规定的说明,除了choclatey,因为我已经有了节点等,但我不能构建我的应用程序,以达到仿真器上的输出RN样板(步骤2:在文档中)以下npx反应本机运行android。我已经搜索了很多很多个小时来寻找一个解决方案,但是我一无所获,这变得非常令人沮丧。下面我附上了相关的输出。 提前感谢您的帮助。

  • 我在调试中构建我的项目没有问题。我刚刚安装了一个新的npm包(bugsnag),然后做了react-本机链接,现在我不能再构建它了。我尝试了谷歌的许多建议解决方案,但都不起作用。 奇怪的部分,我试图建立我的项目的备份文件,它没有建立也有同样的错误,所以感觉像它与其他东西有关? 错误详细信息: .... 导致原因:Java . util . concurrent . execution except