简体   繁体   English

清除缓存Cordova构建错误Visual Studio 2015

[英]Clear cache Cordova build error Visual studio 2015

When I start a new Cordova blank project, it doesn't work, I searched on stackoverflow and I reinstalled the package but still doesn't work. 当我启动一个新的Cordova空白项目时,它不起作用,我在stackoverflow上进行搜索,然后重新安装了该程序包,但仍然不起作用。

Screenshot with error message 带有错误消息的屏幕截图

It is possible to clear cache on application startup with the code below: 可以使用以下代码在应用程序启动时清除缓存:

public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     // clear cache
     super.clearCache();
     super.loadUrl("file:///android_asset/www/index.html");
 }

Source 资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM