简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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