-
Notifications
You must be signed in to change notification settings - Fork 327
Description
请按以下格式提供问题的相关信息。
问题的具体描述
参考react-native官网教程搭建开发环境,gradle也下载到本地解压了,结果在yarn android时报错:
yarn android
yarn run v1.22.22
$ react-native run-android
info Installing the app...
Downloading file:/E:/AwesomeProject/android/gradle/wrapper/gradle-8.14.3-bin.zip
.............10%.............20%.............30%.............40%.............50%.............60%.............70%.............80%.............90%..............100%
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
FAILURE: Build failed with an exception.
- What went wrong:
Gradle could not start your build.
Could not initialize native services.
- 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.
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an excestacktrace 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.
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
请描述完整的环境/版本信息
gradle版本参考官网拉下的项目中配置的8.14.3版本,jdk17。