无法在Android Studio中调试应用程序 [英] Not Able To Debug App In Android Studio

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

问题描述

我在Android Studio中制作一个应用程序,现在尝试通过adb进行调试。当我点击Android上的单词和底部栏上的徽标时,logcat会出现并识别我的设备。然后我看到这样:

I am making an app in Android Studio, now trying to debug it through adb. When I click on the word Android and the logo on the bottom bar, logcat comes up and recognizes my device. Then I see this:

我的应用程序需要做什么才能使其可调试?

What do I need to do to my app to make it "debuggable"?

FYI正在Eclipse中开发此应用程序,然后使用adb

FYI was developing this app in Eclipse before and adb worked fine.

推荐答案

工具栏上有一个调试图标。它看起来像一个bug,位于运行图标旁边(看起来像一个播放按钮)。尝试启动该应用程序。

There is a Debug icon on the toolbar. It looks like a little "bug" and is located right next to the Run icon (which looks like a play button). Try launching the application with that.

< img src =https://i.stack.imgur.com/tX4Th.pngalt =点击这里调试>

编辑:当使用带有Gradle的Android Studio时,不推荐使用以下内容。

The following is deprecated when using Android Studio with Gradle.

AndroidManifest.xml 文件。它位于应用程序标签下,应设置为true,如下所示:

There is also a debug flag in the AndroidManifest.xml file. It is located under the application tag, and should be set to "true", as follows:

<application android:debuggable="true">
</application>

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

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