I'm using Android Studio/Gradle.
appsrcmainandroid_asset folder has the file called chart.html..
I'm trying to load this file to my webview like this:
WebView view = new WebView(this);
view.getSettings().setJavaScriptEnabled(true);
view.loadUrl("file:///android_asset/chart.html");
setContentView(view);
But I always get the error: could not be loaded because ERR_FILE_NOT_FOUND.
What am I missing here?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…