老师,能给一份,能够构建android成功的demo例子吗?最好是gradle-8.0版本以上的,我试过8.0版本以下的,各种不兼容的问题。
或者能够成功构建安卓的,相对应的各种依赖的版本号,发给我一份也行。
谢谢!
项目所使用版本号:
react-native版本号:
“react”: “18.3.1”,
“react-native”: “0.75.3”,
node版本号:v16.14.2
jdk版本:java 11.0.24 2024-07-16 LTS
gradle版本:gradle-8.1-all.zip
./gradlew clean
FAILURE: Build failed with an exception.
Where:
Script ‘/Users/huangxiaodong/hooks/react/github_rn/node_modules/@react-native-community/cli-platform-android/native_modules.gradle’ line: 526
What went wrong:
A problem occurred evaluating script.
Could not get unknown property ‘providers’ for settings ‘GitHub_RN’ of type org.gradle.initialization.DefaultSettings.
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 307ms