Expo 48 Android build fails Gradle

ua4mk5z4  于 2023-11-18  发布在  Android
关注(0)|答案(2)|浏览(113)

我把我的react native expo托管应用程序升级到expo 48,从那以后,ios构建工作正常,但当我尝试运行android的eas构建时,android构建失败。
下面是错误消息。我希望任何帮助我做错了什么:

https://firebasestorage.googleapis.com/v0/b/mpcwebsite2.appspot.com/o/gradle%20issue.md?alt=media&token=488b695f-0d17-49fd-8fab-e1feb52fb484

It was too long to paste here but here is final snippet:

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

-----------

* What went wrong:

Execution failed for task ':app:mergeReleaseResources'.

> A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable

   > 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@2e0888e.). Check logs for more details.

* Try:

> 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.

==============================================================================

2: Task failed with an exception.

-----------

* What went wrong:

java.lang.StackOverflowError (no error message)

* Try:

> 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.

==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 7m 34s

字符串

lmvvr0a8

lmvvr0a81#

我也遇到了同样的问题,通过将expo sdk升级到@49.0.0解决了这个问题。

mi7gmzs6

mi7gmzs62#

问题出在app.json的notification对象上,我不得不删除所有的颜色键/值对。

相关问题