android:debuggable鎬庝箞璁剧疆
鍦ˋndroid椤圭洰鐨?code>AndroidManifest.xml鏂囦欢涓紝鍙互閫氳繃鍦?code><application>鏍囩涓坊鍔?code>android:debuggable="true"鏉ヨ缃簲鐢ㄤ负debuggable鐘舵€併€備緥濡傦細
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:debuggable="true">
...
</application>
鍙﹀锛屼篃鍙互鍦?code>build.gradle涓殑buildTypes
涓缃甦ebuggable灞炴€э紝渚嬪锛?/p>
android {
buildTypes {
debug {
debuggable true
}
}
}
相关问答