【问题标题】:Android build failed: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more informationAndroid 构建失败:Gradle 构建因未知错误而失败。有关详细信息,请参阅“运行 gradlew”阶段的日志
【发布时间】:2023-01-24 11:37:14
【问题描述】:

这是 IDE 在构建时显示的内容 - Android 构建失败:Gradle 构建失败,出现未知错误。有关详细信息,请参阅“运行 gradlew”阶段的日志。在 expo 中打开时,发现以下错误消息。有人可以解决这个问题吗?

[stderr] FAILURE: Build completed with 2 failures.
[stderr] 1: Task failed with an exception.
[stderr] -----------
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:mergeReleaseResources'.
[stderr] > A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable
[stderr]    > Resource compilation failed (Failed to compile values resource file /home/expo/workingdir/build/android/app/build/intermediates/incremental/release/mergeReleaseResources/merged.dir/values/values.xml. Cause: java.lang.IllegalStateException: Can not extract resource from com.android.aaptcompiler.ParsedResource@1cb34187.,Can not extract resource from com.android.aaptcompiler.ParsedResource@65ffa193.). Check logs for more details.
[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 3m 2s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
146 actionable tasks: 146 executed
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

【问题讨论】:

标签: android react-native build expo eas


【解决方案1】:

我遇到了同样的问题。你修好了吗? 是不是因为一些最新的资源文件没有上传到git? 我想这就是原因,但现在,我无法尝试,因为现在世博会服务出现了一些问题。

【讨论】:

    猜你喜欢
    • 2013-09-21
    • 1970-01-01
    • 2016-09-04
    • 1970-01-01
    • 2017-10-06
    • 2018-10-13
    • 2016-10-02
    • 2022-07-07
    • 2016-08-01
    相关资源
    最近更新 更多