Android 无法解析React-native cli\build\bin.js

Android 无法解析React-native cli\build\bin.js,android,react-native,Android,React Native,我可以毫无错误地运行我的rn项目。我只是创建了另一个测试 react-native init testapp 然后用vs代码打开,像往常一样运行这个命令 react-native run-android --no-jetifier 它在emulator中运行代码,但现在在这样的新项目中出现错误 info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifie

我可以毫无错误地运行我的rn项目。我只是创建了另一个测试

react-native init testapp
然后用vs代码打开,像往常一样运行这个命令

react-native run-android --no-jetifier 
它在emulator中运行代码,但现在在这样的新项目中出现错误

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 971 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Installing the app...
:ReactNative:Unexpected empty result of running '[node, C:\Users\sampleuser\Desktop\samplee\testapp\node_modules\react-native\node_modules\@react-native-community\cli\build\bin.js, config]' command.
:ReactNative:Running '[node, C:\Users\sampleuser\Desktop\samplee\testapp\node_modules\react-native\node_modules\@react-native-community\cli\build\bin.js, config]' command failed.

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\sampleuser\Desktop\samplee\testapp\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' line: 195

* What went wrong:
A problem occurred evaluating script.
> internal/modules/cjs/loader.js:1033  throw err;  ^Error: Cannot find module 'C:\Users\sampleuser\Desktop\samplee\testapp\node_modules\react-native\node_modules\@react-native-community\cli\build\bin.js'    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1030:15)    at Function.Module._load (internal/modules/cjs/loader.js:899:27)    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)    at internal/main/run_main_module.js:17:47 {  code: 'MODULE_NOT_FOUND',  requireStack: []}

* 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

BU�LD FAILED in 1s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
我也试过

npx react-native run-android

Also tryed
uninstall and reinstall nodemodules
Cold start Emulator
Update android sdk
Still gives same error 

还尝试降级版本

  "dependencies": {
    "react": "16.8.0",
    "react-native": "0.60.0",


我无法运行我的代码我试过它说“错误:未知选项<代码>--stacktrace'”还有“错误:未知选项<代码>--info'”我是问错了还是问错了
FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\sampleuser\Desktop\samplee\testapp\android\app\build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.

info JS server already running.
info Installing the app...
:ReactNative:Unexpected empty result of running '[node, \node_modules\react-native\node_modules\@react-native-community\cli\build\bin.js, config]' command.
:ReactNative:Running '[node, \node_modules\react-native\node_modules\@react-native-community\cli\build\bin.js, config]' command failed.
react-native --version
react-native-cli: 2.0.1
react-native: 0.63.2