我正在使用PhoneGap Build构建一个Web应用程序,禁用调试模式但是当我下载文件时处于调试模式。这只发生在Android上,所有其他操作系统都是正确的。
如何在Android应用程序上禁用调试模式?
答案 0 :(得分:3)
运行构建时。使用:
cordova build android --release
或
phonegap build android --release
如果上传播放商店错误==>
上传失败 您上传了可调试的APK。出于安全原因,您需要先禁用调试才能在Google Play中发布
确保你的清单设置如下:android:debuggable =" false" e.g。
<application android:debuggable="false" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name">
答案 1 :(得分:1)
在你的android项目中,打开res / xml和cordova.xml或phonegap.xml,并更改phonegap中的debuger级别。
目前是<log level="DEBUG"/>
。
您可以将其更改为:
使用http://developer.android.com/reference/android/util/Log.html