-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gradle 8.6在windows下可能存在bug,需降级到8.5 #848
Comments
具体的报错呢? |
failed to install the app |
这不是报错,截图 |
删掉 |
我也遇到了同样的问题,也尝试了删除.gradle,依然error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8082 FAILURE: Build failed with an exception. * What went
|
@Cz2545481217 你的问题完全不一样,你的是jdk版本不对 |
@wang333333333 我查了下,好像是gradle 8.6的bug, 降级到8.5可解决 |
|
降级到8.5之后 再删除.gradle 重新跑就可以了 |
确实降级之后就解决了 但是这个原理是什么 它报得是workspace 和 location |
@sunnylqm 求助大佬 |
@tgwstyle 这个报错不是很明确,之前大部分人是因为jdk版本不对,但看这里的说法也可能还是网络的问题 |
E:\react\AwesomeProject>npx react-native info
info Fetching system and libraries information...
System:
OS: Windows 10 10.0.19045
CPU: (4) x64 Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
Memory: 3.60 GB / 15.90 GB
Binaries:
Node:
version: 18.15.0
path: E:\nvm\nodejs\node.EXE
Yarn:
version: 3.6.4
path: E:\nvm\nodejs\yarn.CMD
npm:
version: 9.5.0
path: E:\nvm\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java: 17.0.11
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.74.2
wanted: 0.74.2
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
javac版本 17.0.11
The text was updated successfully, but these errors were encountered: