【问题标题】:Execution failed for task ':app:mergeReleaseResources'任务执行失败 \':app:mergeReleaseResources\'
【发布时间】:2023-02-09 15:28:02
【问题描述】:

我尝试使用 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

【问题讨论】:

    标签: react-native build eas


    【解决方案1】:

    同样的问题有人有解决办法吗?

    【讨论】:

      猜你喜欢
      • 2020-03-22
      • 1970-01-01
      • 2020-03-07
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 2018-08-20
      • 2016-05-02
      • 2022-01-19
      相关资源
      最近更新 更多