Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/115.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
Android 任务';的独立生成执行失败:应用程序:mergeProdKernelReleaseResources';_Android_Ios_React Native_Expo - Fatal编程技术网

Android 任务';的独立生成执行失败:应用程序:mergeProdKernelReleaseResources';

Android 任务';的独立生成执行失败:应用程序:mergeProdKernelReleaseResources';,android,ios,react-native,expo,Android,Ios,React Native,Expo,我使用的是高清1024x1024 png图像,但即使应用程序未在ios中编译,也仍然会遇到此问题 给出这个错误: 如果您希望将应用程序上载到Apple Store,则应用程序图标不能透明。 我已经检查过我的申请表了,但没问题 > Task :app:mergeProdKernelReleaseResources FAILED [stderr] FAILURE: Build failed with an exception. [stderr] * What went wrong: [stde

我使用的是高清1024x1024 png图像,但即使应用程序未在ios中编译,也仍然会遇到此问题 给出这个错误:

如果您希望将应用程序上载到Apple Store,则应用程序图标不能透明。

我已经检查过我的申请表了,但没问题

> Task :app:mergeProdKernelReleaseResources FAILED
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:mergeProdKernelReleaseResources'.
[stderr] > java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
[stderr]   Output:  /app/turtle/workingdir/android/sdk32/android-shell-app/app/src/main/res/drawable-xxxhdpi/shell_launch_background_image.png: error: failed to read PNG signature: file does not start with PNG signature.
[stderr]   
[stderr]   Command: /root/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-linux.jar/86f0959622145d3be808625a1d88d51d/aapt2-3.2.1-4818971-linux/aapt2 compile --legacy \
[stderr]           -o \
[stderr]           /app/turtle/workingdir/android/sdk32/android-shell-app/app/build/intermediates/res/merged/prodKernel/release \
[stderr]           /app/turtle/workingdir/android/sdk32/android-shell-app/app/src/main/res/drawable-xxxhdpi/shell_launch_background_image.png
[stderr]   Daemon:  AAPT2 aapt2-3.2.1-4818971-linux Daemon #5
[stderr] * Try:
[stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 29s
17 actionable tasks: 17 executed
Error: ./gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
    at Object.onceWrapper (events.js:317:30)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
    ...
    at spawnAsync (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
    at spawnAsyncThrowError (/app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:233:45)
    at buildShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:801:11)
    at <anonymous>
>任务:应用程序:mergeProdKernelReleaseResources失败
[stderr]失败:生成失败,出现异常。
[stderr]*出了什么问题:
任务“:app:mergeProdKernelReleaseResources”的[stderr]执行失败。
[stderr]>java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.v2.Aapt2Exception:android资源编译失败
[stderr]输出:/app/turtle/workingdir/android/sdk32/android shell app/app/src/main/res/drawable xxxhdpi/shell\u launch\u background\u image.png:错误:无法读取png签名:文件不以png签名开头。
[stderr]
[stderr]命令:/root/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-linux.jar/86f099622145d3be808625a1d88d51d/aapt2-3.2.1-4818971-linux/aapt2-compile-legacy\
[stderr]-o\
[stderr]/app/turtle/workingdir/android/sdk32/android shell app/app/build/intermediates/res/merged/prodKernel/release\
[stderr]/app/turtle/workingdir/android/sdk32/android shell app/app/src/main/res/drawable xxxhdpi/shell\u launch\u background\u image.png
[stderr]守护程序:AAPT2 AAPT2-3.2.1-4818971-linux守护程序#5
[stderr]*请尝试:
[stderr]使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力。
[stderr]*在获取更多帮助https://help.gradle.org
[stderr]生成在29秒内失败
17项可执行任务:17项已执行
错误:./gradlew已退出,代码为非零:1
在ChildProcess.completionListener(/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn async/build/spawasync.js:52:23)
在Object.onceWrapper(events.js:317:30)
两点钟(events.js:126:13)
在ChildProcess.emit(events.js:214:7)
在maybeClose(内部/子进程js:915:16)
at Process.ChildProcess.\u handle.onexit(内部/child\u Process.js:209:5)
...
在spawnAsync(/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn async/build/spawasync.js:17:21)
在PrownAsyncThrowerRor(/app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:233:45)
在buildShellAppAsync(/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:801:11)
在

检查此图像
可绘制xxxhdpi/shell\u launch\u background\u image.png
此处上传图像@Muhammad Hamza Nisari在完整的项目文件中未找到此图像,这就是我感到困惑的原因