尝试使用命令 react-native run-android 将应用程序安装到设备。
没有显示错误,但应用程序卡在任务 app:installDebug 上,产生以下输出。
任务:app:installDebug 08:46:24 V/ddms:执行:运行 am get-config 08:46:24 V/ddms:在“xxxxxxxxxxx”上执行“am get-config”:EOF 命中。阅读:-1 08:46:24 V/ddms:执行:返回在“WAS-LX1 - 8.0.0”上安装 APK 'app-debug.apk' for app:debug 08:46:24 D/app-debug。 apk:将 app-debug.apk 上传到设备 'xxxxxxxx' 08:46:24 D/设备:上传文件到设备 'xxxxxxxxxxxx' 08:46:24 D/ddms:读取 /Users/xxxxx/work/xxxx 的文件权限-app/android/app/build/outputs/apk/debug/app-debug.apk 为:rw-r--r-- 08:46:25 V/ddms:执行:运行 pm install -r -t "/ data/local/tmp/app-debug.apk" <============-> 99% 正在执行 [1m 20s] :app:installDebug
大约三个 3 分钟后抛出以下错误:
任务“:app:installDebug”执行失败。com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException
尝试 ./gradlew clean,重新安装 node_modules。Adb device 命令显示设备名称。
| 归档时间: |
|
| 查看次数: |
2306 次 |
| 最近记录: |