[英]adb: failed to stat app/build/outputs/apk/app-debug.apk: No such file or directory
react-native-cli: 2.0.1 react-native: 0.57.3 react-native-cli:2.0.1 react-native:0.57.3
Getting an error when connecting Android device via USB on a new app: 在新应用上通过USB连接Android设备时出现错误:
> adb devices
List of devices attached 988se6666555453 device 988se6666555453设备连接的设备列表
> react-native run-android --deviceId 988se6666555453
From the root of your directory App run: 从目录App的根目录运行:
> adb devices
List of devices attached 988se6666555453 device 988se6666555453 设备连接的设备列表
copy your deviceId if your device is connected and run 如果您的设备已连接并运行,请复制您的deviceId
> adb -s 988se6666555453 install android/app/build/outputs/apk/debug/app-debug.apk
> react-native run-android --deviceId 988se6666555453
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.