应用在Android Studio中安装时挂起 [英] App hang on install in Android Studio

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

问题描述

通常,我会在 Android Studio 中构建一个应用程序,以在Phone上测试该应用程序.但这会在我只单击 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中安装时挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆