React Native 任务“:app:mergeReleaseResources”的执行失败

0md85ypi  于 2023-03-19  发布在  React
关注(0)|答案(1)|浏览(191)

我尝试使用eas build构建我的react原生应用程序。第一次构建因react-native-navbar-color而失败。然后我解决了这个问题并再次尝试构建。这也是我在构建应用程序时遇到的错误。

[stderr] * What went wrong:
[stderr] Execution failed for task ':app:mergeReleaseResources'.
[stderr] > Multiple task action failures occurred:
[stderr]    > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
[stderr]       > Android resource compilation failed
[stderr]         ERROR:/home/expo/workingdir/build/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: AAPT: error: file failed to compile.
[stderr]             
[stderr]    > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
[stderr]       > Android resource compilation failed
[stderr]         ERROR:/home/expo/workingdir/build/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: AAPT: error: file failed to compile.
[stderr]             
[stderr]    > A failure occurred while executing com.android.build.gradle.internal.res.Aapt2CompileRunnable
[stderr]       > Android resource compilation failed
[stderr]         ERROR:/home/expo/workingdir/build/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: AAPT: error: file failed to compile.
[stderr]             
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] 2: Task failed with an exception.
[stderr] -----------
[stderr] * What went wrong:
[stderr] java.lang.StackOverflowError (no error message)
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 5m 40s
vwoqyblh

vwoqyblh1#

每当你在flutter中做了一个改变.运行flutter clean然后重新构建.

flutter clean

相关问题