android:我如何将我的应用程序标记为可调试? [英] android: how do i mark my app as debuggable?

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

问题描述

我想从我的手机调试我的应用程序。我如何签署我的应用程序,以便我可以做到这一点?我不太了解清单。

解决方案

通过放入 android:debuggable =true code>在您的清单文件中,应用程序将进入调试模式,这意味着android将管理所有关于您的应用程序的日志文件。但是如果应用程序将要上线或发布模式,请确保再次执行 false (或删除此标签)。

 < manifest xmlns:android =http://schemas.android.com/apk/res/android
...
<应用程序android :icon =@ drawable / icon
android:debuggable =true


I want to debug my app from my phone. how do i sign my app so i can do this? i dont know much about the manifest.

解决方案

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