Android:如何将我的应用标记为可调试? [英] Android: how to mark my app as debuggable?

查看:110
本文介绍了Android:如何将我的应用标记为可调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过手机调试我的应用程序.我该如何签名我的应用程序才能做到这一点?我对清单不太了解.

I want to debug my app from my phone. How do I sign my app so I can do this? I don't know much about the manifest.

推荐答案

通过将android:debuggable="true"放入清单文件中,应用程序将进入调试模式,这意味着android将管理与您的应用程序有关的所有日志文件.但是,如果应用程序将进入实时模式或发布模式,请确保再次输入false(或删除此标签).

By putting android:debuggable="true" in your manifest file, application will go in debug mode, that's mean android will manage all logs file regarding your application. But make sure put it again false(or remove this tag) if application will going to live or for release mode.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    ...
    <application android:icon="@drawable/icon"
        android:debuggable="true"

这篇关于Android:如何将我的应用标记为可调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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