运行react-native run-android报错,Execution failed for task ':app:installDebug'.



    • What went wrong:
      Execution failed for task ':app:installDebug'.

    com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Unknown failure: /system/bin/sh: no closing quote

    error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.
    Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
    Unable to install C:\Users\dell\Desktop\doctorz2.0\gungnir-app\android\app\build\outputs\apk\debug\ѧ��-v1.0(1)-20191010-beta.apk
    com.android.ddmlib.InstallException: Unknown failure: /system/bin/sh: no closing quote
    at com.android.ddmlib.Device.installRemotePackage(Device.java:1063)
    at com.android.ddmlib.Device.installPackage(Device.java:903)
    at com.android.ddmlib.Device.installPackage(Device.java:881)
    at com.android.ddmlib.Device.installPackage(Device.java:870)
    at com.android.builder.testing.ConnectedDevice.installPackage(ConnectedDevice.java:126)



  • apk改了中文名?



  • 谢谢,错误原因是打包成apk名字中带有中文。


Log in to reply