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