由于未知错误,Android 构建在 React Native 博览会应用程序中失败,面临问题

问题描述 投票:0回答:1

I'm facing this issue while i'm trying to create build for my react native expo app,I have removed not usesful packages and dependecies from my app.

我已经使用了命令 “npx eas build --platform android” 它没有显示任何错误,但 5-6 分钟后进程停止并显示此错误 message after build failed

在 expo go 应用程序或 Android 模拟器上运行时未显示此类错误 ,应用程序运行完美,没有显示任何错误,但不知道为什么在为应用程序创建构建时会发生这种情况。

请帮助我解决这个问题。

react-native android-build react-android
1个回答
0
投票

尝试在终端的 android 文件夹中运行

./gradlew clean
。看看你遇到了什么错误。如果错误仍然存在,请尝试执行此命令
gradlew --scan assembleRelease
。请随时在这里发布错误并寻求更多帮助!

© www.soinside.com 2019 - 2024. All rights reserved.