Closed tian1711873821 closed 2 years ago
android studio带的jdk版本(我猜是jdk11) 和你自己装的jdk版本(我猜低于jdk11)不一致
👋 Hey there, it looks like there has been no activity on this issue in the last 90 days. Has the issue been fixed, or does it still require the community attention? This issue will be closed in the next 7 days if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
FAILURE: Build failed with an exception.
Where: Build file 'D:\native\AwesomeProject\android\app\build.gradle' line: 1
What went wrong: A problem occurred evaluating project ':app'.
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 3s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
Where: Build file 'D:\native\AwesomeProject\android\app\build.gradle' line: 1
What went wrong: A problem occurred evaluating project ':app'.
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 3s
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.
项目使用android studio打开android文件可以正常运行,但是yarn react-native run-android却报错是为什么呢