React native 执行npx react本机运行android时出错

React native 执行npx react本机运行android时出错,react-native,React Native,我是个新来的本地人。我试图运行模拟器,但它显示“未能启动模拟器”,我不知道如何解决错误。我应该如何解决错误 D:\hiban_work\react\AwesomeProject>npx react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found

我是个新来的本地人。我试图运行模拟器,但它显示“未能启动模拟器”,我不知道如何解决错误。我应该如何解决错误

D:\hiban_work\react\AwesomeProject>npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" 
flag.
Jetifier found 903 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
info Launching emulator...
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
'C:\Users\Hanim' is not recognized as an internal or external command,
operable program or batch file.
error Failed to launch emulator. Reason: Could not start emulator within 30 seconds..
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :app:checkDebugDuplicateClasses FAILED                                                                           > :app:checkDebugAarMetadata > Resolve files of
16 actionable tasks: 14 executed, 2 up-to-date

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform swiperefreshlayout-1.0.0.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for AarToClassTransform: C:\Users\Hanim Omer\.gradle\caches\modules-2\files-2.1\androidx.swiperefreshlayout\swiperefreshlayout\1.0.0\4fd265b80a2b0fbeb062ab2bc4b1487521507762\swiperefreshlayout-1.0.0.aar.
         > error in opening zip file

* 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 4m 56s

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.

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform swiperefreshlayout-1.0.0.aar (androidx.swiperefreshlayout:swiperefreshlayout:1.0.0) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for AarToClassTransform: C:\Users\Hanim Omer\.gradle\caches\modules-2\files-2.1\androidx.swiperefreshlayout\swiperefreshlayout\1.0.0\4fd265b80a2b0fbeb062ab2bc4b1487521507762\swiperefreshlayout-1.0.0.aar.
         > error in opening zip file

* 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 4m 56s

    at makeError (D:\hiban_work\react\AwesomeProject\node_modules\execa\index.js:174:9)
    at D:\hiban_work\react\AwesomeProject\node_modules\execa\index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
    at async runOnAllDevices (D:\hiban_work\react\AwesomeProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:94:5)
    at async Command.handleAction (D:\hiban_work\react\AwesomeProject\node_modules\@react-native-community\cli\build\index.js:186:9)
info Run CLI with --verbose flag for more details.