找不到drawable / ic_stat_ic_launcher,颜色/汽油

时间:2020-02-03 09:00:02

标签: android react-native

我遇到的错误 enter image description here

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
  D:\Program\ReactNative\CareNow-Denco-Mobile\android\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:77: AAPT: error: resource drawable/ic_stat_ic_launcher (aka vn.solidtech:drawable/ic_stat_ic_launcher) not found.

  D:\Program\ReactNative\CareNow-Denco-Mobile\android\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:80: AAPT: error: resource color/petrol (aka vn.solidtech:color/petrol) not found.

  error: failed processing manifest.

我刚刚得到了这个项目,并试图进行构建,但是一直在出现此未找到的错误,搜索的结果类似于从xml文件复制未命中之类的东西,但我不知道这样是否正确。 需要一些帮助的人


编辑

这是调试日志中显示的错误


        <meta-data
            android:name="com.google.firebase.messaging.default_notification_icon"
            android:resource="@drawable/ic_stat_ic_launcher" />
        <meta-data
            android:name="com.google.firebase.messaging.default_notification_color"
            android:resource="@color/petrol" />
        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/fb_app_id" />
        <meta-data
            android:name="com.facebook.accountkit.ApplicationName"
            android:value="@string/app_name" />
        <meta-data
            android:name="com.facebook.accountkit.ClientToken"
            android:value="@string/ak_client_token" />
        <meta-data
            android:name="com.google.firebase.messaging.default_notification_channel_id"
            android:value="@string/default_notification_channel_id" />

0 个答案:

没有答案