我的应用程序在Android中Stduio无法启动调试模式 [英] My Application can't start debug mode in Android Stduio

查看:922
本文介绍了我的应用程序在Android中Stduio无法启动调试模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在logcat中显示:

The logcat show:

 Waiting for device.
Target device: lge-nexus_4-01aa55d2b923e7a9

上传文件的本地路径:

C:\Users\HOXCN\AndroidStudioProjects\Horcrux\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/com.hoxcn.horcrux
No apk changes detected.
Skipping file upload, force stopping package instead.

DEVICE shell命令:

DEVICE SHELL COMMAND:

am force-stop com.hoxcn.horcrux

下水

application:com.hoxcn.horcrux/com.hoxcn.horcrux.ui.activity.SplashActivity.

DEVICE shell命令:

DEVICE SHELL COMMAND:

am start -D -n  
com.hoxcn.horcrux/com.hoxcn.horcrux.ui.activity.SplashActivity" -a 
android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN   
cat=[android.intent.category.LAUNCHER] 
cmp=com.hoxcn.horcrux/.ui.activity.SplashActivity }

警告:

debug info can be unavailable. Please close other application using ADB: Monitor, DDMS, Eclipse

重新启动亚行整合,然后再试一次(PS:我重新启动与亚行击杀服务器亚洲开发银行,不工作)

Restart ADB integration and try again(PS: I restart the adb with adb kill-server, don't work)

在等待的过程: com.hoxcn.horcrux

如果我用默认创建一个应用程序,调试模式可以运行。

If i create a application with a default, the debug mode can run.

如果我点击运行应用,它的工作;如果我点击调试应用,它上面显示的信息,并且屏幕显示对话框等待调试器的所有时间

If i click run 'app', it work; if i click debug 'app', it show the message above and the screen show the dialog "Waiting for debugger" all the time

推荐答案

您哈瓦删除 的android:可调试=真正的,因为当你运行/调试在Android的Studio应用程序与调试证书签名,这样的设置是不是从控制台mandatory.Then检查设备是否已正确连接与亚行的设备。你应该看到它上市。
以下步骤如下:


  1. 关闭Android的工作室和任何其他IDE你已经打开了(也许你已经Eclipse还跑?),并在仿真器实例;

  1. close Android Studio and any other IDE you have opened (maybe you have Eclipse also running?) and emulator instances;

从电脑上取下USB电缆

3。从控制台运行的杀亚行 - 服务器

3 . Run adb kill-server from console;

4 打开 Android的工作室;

4 .Open Android Studio;

5。 点击在运行/调试;

5 . Click on run/debug;

6。出现选择设备窗口时,附上您的设备的USB和USB到您的计算机;
在这里输入链接的描述

6 . when the window to select the device appears, attach your device to USB and USB to your computer; enter link description here

这篇关于我的应用程序在Android中Stduio无法启动调试模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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