在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 } }} 

