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

查看:36
本文介绍了无法在 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"?

仅供参考之前在 Eclipse 中开发此应用程序,并且 adb 运行良好.

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

推荐答案

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

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.

以下内容在将 Android Studio 与 Gradle 一起使用时已弃用.

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天全站免登陆