I have a webpage with a graph that utilizes javascript, jquery, bootstrap, and angular.js. I am attempting to load this graph in my android app using a WebView within the android.support.v4.app.Fragment.
WebView webView = (WebView) rootView.findViewById(R.id.webview_webview);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl(getArguments().getString(MY_URL));
Upon starting the fragment, the following log message is generated:
10-30 13:09:57.655: W/art(31893): Attempt to remove local handle scope entry from IRT, ignoring
10-30 13:09:57.659: W/AwContents(31893): onDetachedFromWindow called when already detached. Ignoring
... (truncated for brevity)
10-30 13:09:58.374: I/chromium(31893): [INFO:CONSOLE(1)] "Uncaught SyntaxError: Unexpected token <", source: mydomain//js/sweetalert-master/dist/sweetalert.min.js (1)
The errors mentioned above, involving "unexpected token <" for each loaded javascript file, are occurring. Despite these errors, the page loads correctly in various browsers.
Has anyone encountered this issue before? Any suggestions or advice would be greatly appreciated. Thank you.