我试图发布我的android应用程序创建与科尔多瓦,并发布时,我遵循所有步骤像android:debuggable =“false”甚至删除这条线作为其最新的建议,但问题是当我在我的模拟器中安装签名的版本版本我能够调试它...任何帮助?WebView.setWebContentsDebuggingEnabled(false),但我可以在安装已签名APK后调试代码
更新: -
按照建议我试图..
public class appname extends CordovaActivity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.init();
super.loadUrl(Config.getStartUrl());
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT){
if(0 != (getApplicationInfo().flags = ApplicationInfo.FLAG_DEBUGGABLE)){
//Log.i("Your app", "Disable web debugging");
WebView.setWebContentsDebuggingEnabled(false);
}
}
}
}
在公共无效的onCreate(捆绑savedInstanceState){}
实测值这段代码在CordovaWebView.java
if((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0 &&
android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT)
{
setWebContentsDebuggingEnabled(true); // I tried setting this false as well
}
但它仍然没有工作......我仍然能够调试html js fil es
你如何调试旅游代码? – 2014-08-29 04:36:21
通过镀铬设备工具 – Luckyy 2014-08-29 05:51:31