mtm*_*ock 32 debugging android android-manifest
我想从手机调试我的应用程序.我如何签署我的应用程序,所以我可以这样做?我对清单知之甚少.
dra*_*ard 36
通过放入android:debuggable="true"
您的清单文件,应用程序将进入调试模式,这意味着android将管理有关您的应用程序的所有日志文件.但false
如果应用程序将处于生存状态或发布模式,请确保再次放置(或删除此标记).
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
...
<application android:icon="@drawable/icon"
android:debuggable="true"
Run Code Online (Sandbox Code Playgroud)
Chr*_*cía 31
使用新的Gradle构建系统,建议的方法是在构建类型中分配它.
在你的app模块中build.gradle
:
android {
//...
buildTypes {
debug {
debuggable true
}
customDebuggableBuildType {
debuggable true
}
release {
debuggable false
}
}
//...
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
47360 次 |
最近记录: |