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.
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");
}
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.