Android webview loadurl(“file:///android_asset/index.html#home”) failed

前端 未结 2 2254
执笔经年
执笔经年 2020-12-07 01:10

I am working on an application in Android, where I want to load a local html file using

webview.loadurl(\"file:///android_asset/index.html#home\");
<         


        
2条回答
  •  不知归路
    2020-12-07 01:59

    this is what happen to me i misspelled it make sure you typed correctly

    file://android_asset/www/index.html

    not as "assets"

提交回复
热议问题