代码之家  ›  专栏  ›  技术社区  ›  Mahdi Bashirpour

react native:任务执行失败:app:processdebugsources'

  •  0
  • Mahdi Bashirpour  · 技术社区  · 6 年前

    \找不到android\app\build\intermediates\manifests\full\debug\androidmanifest.xml:61:aapt:error:resource mipmap/ic \notif(aka…:mipmap/ic \notif)。

    错误:处理清单失败。

    失败:生成失败,出现异常。

    出了什么问题: 任务“”的执行失败:app:processDebugResources“”。 处理资源失败,有关详细信息,请参阅上面的AAPT输出。

    尝试: 使用--stack trace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。用——扫描来获得完整的信息。

    <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 回复  |  直到 6 年前
        1
  •  0
  •   Mahdi Bashirpour    6 年前
    ic_launcher ic_notif

    enter image description here