Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 反应本机-无法执行aapt_Reactjs_React Native_React Native Android_React Native Fcm - Fatal编程技术网

Reactjs 反应本机-无法执行aapt

Reactjs 反应本机-无法执行aapt,reactjs,react-native,react-native-android,react-native-fcm,Reactjs,React Native,React Native Android,React Native Fcm,我刚刚配置了,当我尝试启动打包机时: npm install && gradlew clean 我得到以下错误: enter code here E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:73: AAPT: warning: string 'instabug_str_empty' marked untra

我刚刚配置了,当我尝试启动打包机时:

npm install && gradlew clean
我得到以下错误:

enter code here
E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:73: AAPT: warning: string 'instabug_str_empty' marked untranslatable but exists in locale 'zh-CN'

E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:87: AAPT: warning: string 'instabug_str_plus' marked untranslatable but exists in locale 'zh-CN'

E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:88: AAPT: warning: string 'instabug_str_powered_by_instabug' marked untranslatable but exists in locale 'zh-CN'

E:\projects\deets-mobile-sp\android\app\build\intermediates\manifests\full\debug\AndroidManifest.xml:120:31-47: AAPT: No resource found that matches the given name (at 'resource' with value '@mipmap/ic_notif').

E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:73: warning: string 'instabug_str_empty' marked untranslatable but exists in locale 'zh-CN'

E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:87: warning: string 'instabug_str_plus' marked untranslatable but exists in locale 'zh-CN'

E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:88: warning: string 'instabug_str_powered_by_instabug' marked untranslatable but exists in locale 'zh-CN'

warning: string 'instabug_str_record_audio' has no default translation.
E:\projects\deets-mobile-sp\android\app\build\intermediates\manifests\full\debug\AndroidManifest.xml:118: error: Error: No resource found that matches the given name (at 'resource' with value '@mipmap/ic_notif').


:app:processDebugResources FAILED

FAILURE: Build failed with an exception.

 What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

 Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 4 mins 17.331 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html

正如我所看到的,它正试图找到名为ic\u notif

Error: No resource found that matches the given name (at 'resource' with value '@mipmap/ic_notif').
尝试以下修复

  • 转到所有四个android/app/src/main/res/mipmap-(hdpi/mdpi/xhdpi/xxhdpi)
  • 复制一个ic\u启动器,并将其重命名为ic\u notif
  • 或者您可以从示例中获取这些png图像文件

    希望这对你有帮助