温馨提示×

android:debuggable怎么设置

小亿
97
2024-06-12 14:31:02
栏目: 编程语言

在Android项目的AndroidManifest.xml文件中,可以通过在<application>标签中添加android:debuggable="true"来设置应用为debuggable状态。例如:

<application
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:debuggable="true">
    ...
</application>

另外,也可以在build.gradle中的buildTypes中设置debuggable属性,例如:

android {
    buildTypes {
        debug {
            debuggable true
        }
    }
}

0