本文介绍了应用挂起在 Android Studio 中安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常我会在 Android Studio 中构建一个应用程序来测试手机上的应用程序.但是当我点击 Run app

Usually I build an app in Android Studio to test an app on Phone. But this occurs when I just click the Run app

Waiting for device.
Target device: motorola-nexus_6-ZX1G227B86
Uploading file
    local path: F:\HeadFirstAndroid\MateClient\app\build\outputs\apk\app-debug.apk
    remote path: /data/local/tmp/com.diyu.org.mateclient
Installing com.diyu.org.mateclient
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.diyu.org.mateclient"

好像进程卡在了pm install,我的手机上没有安装任何应用程序.有什么问题?

It seems that the process is stuck on the pm install and no app is installed on my phone. What's the issue?

和其他项目一样,挂在安装上.

And other projects acts the same, hang on the install.

推荐答案

我通过转到设备上的设置 -> 开发人员选项 -> 解决了这个问题取消选中允许 USB 调试"-> 重新选中框.下次,软件正确启动.

I fixed this issue by going to Settings on the device -> Developer Options ->uncheck "Allow USB debugging' -> Recheck box. And next time, the software started correctly.

这篇关于应用挂起在 Android Studio 中安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 11:13