You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我完全按照首页指南上的“集成到现有原生应用”那一章的做法做的,但是到了“执行"Sync Project files with Gradle"操作。”这一步操作的时候,我打开AndroidStudio,发现出现:Could not read script 'D:\testRN\android\node_modules@react-native-community\cli-platform-android\native_modules.gradle'这个错误,而且我打开文件夹目录,发现有也确实是没有这个native_modules.gradle文件。
我试验了npm i @react-native-community/cli-platform-android这个方法,但是还是没有这个文件。
请描述完整的环境/版本信息
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
Memory: 6.08 GB / 15.93 GB
Binaries:
Node:RN\android>cd MyTest2
version: 20.18.0
path: C:\Program Files\nodejs\node.EXE info
Yarn:
version: 1.22.22
path: ~\AppData\Roaming\npm\yarn.CMD
npm:
version: 10.9.1
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "30"
- "34"
- "35"
Build Tools:
- 30.0.2
- 30.0.3
- 34.0.0
- 35.0.0
System Images:
- android-30 | Google APIs Intel x86 Atom
- android-33 | Google Play Intel x86_64 Atom
- android-34 | Intel x86_64 Atom
- android-35 | Google Play Experimental 16k Page Size Intel x86_64 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.11.35312.102 (Visual Studio Community 2022)
Languages:
Java: 17.0.13
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 15.1.2
wanted: ^15.1.2
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.76.3
wanted: ^0.76.3
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
请按以下格式提供问题的相关信息。
问题的具体描述
我完全按照首页指南上的“集成到现有原生应用”那一章的做法做的,但是到了“执行"Sync Project files with Gradle"操作。”这一步操作的时候,我打开AndroidStudio,发现出现:Could not read script 'D:\testRN\android\node_modules@react-native-community\cli-platform-android\native_modules.gradle'这个错误,而且我打开文件夹目录,发现有也确实是没有这个native_modules.gradle文件。
我试验了npm i @react-native-community/cli-platform-android这个方法,但是还是没有这个文件。
请描述完整的环境/版本信息
System:
OS: Windows 10 10.0.19045
CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
Memory: 6.08 GB / 15.93 GB
Binaries:
Node:RN\android>cd MyTest2
version: 20.18.0
path: C:\Program Files\nodejs\node.EXE info
Yarn:
version: 1.22.22
path: ~\AppData\Roaming\npm\yarn.CMD
npm:
version: 10.9.1
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "30"
- "34"
- "35"
Build Tools:
- 30.0.2
- 30.0.3
- 34.0.0
- 35.0.0
System Images:
- android-30 | Google APIs Intel x86 Atom
- android-33 | Google Play Intel x86_64 Atom
- android-34 | Intel x86_64 Atom
- android-35 | Google Play Experimental 16k Page Size Intel x86_64 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.11.35312.102 (Visual Studio Community 2022)
Languages:
Java: 17.0.13
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 15.1.2
wanted: ^15.1.2
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.76.3
wanted: ^0.76.3
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
"name": "MyReactNativeApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "react-native start"
},
"dependencies": {
"@react-native-community/cli": "^15.1.2",
"@react-native-community/cli-platform-android": "^15.1.2",
"react": "18.2.0",
"react-native": "^0.76.3"
}
}
The text was updated successfully, but these errors were encountered: