Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android webview发生内部错误(TypeError)gwt_Android_Gwt_Webview - Fatal编程技术网

Android webview发生内部错误(TypeError)gwt

Android webview发生内部错误(TypeError)gwt,android,gwt,webview,Android,Gwt,Webview,我构建了一个android应用程序,它提供了两种选择:在网络视图中打开一个特殊的网页,或者通过浏览器。包含java脚本和ajax的网页,返回项目列表 当通过浏览器打开网页时没有问题,但当尝试通过网络视图打开网页时,它返回项目列表,但当我单击其中一个项目时,它返回错误消息 发生内部错误 (TypeError)\uuu gwt$exception::无法调用null的方法“setItem” 这是我的密码 protected void onCreate(Bundle savedInstance

我构建了一个android应用程序,它提供了两种选择:在网络视图中打开一个特殊的网页,或者通过浏览器。包含java脚本和ajax的网页,返回项目列表

当通过浏览器打开网页时没有问题,但当尝试通过
网络视图打开网页时,它返回项目列表,但当我单击其中一个项目时,它返回错误消息

发生内部错误
(TypeError)\uuu gwt$exception::无法调用null的方法“setItem”

这是我的密码

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        WebView web = (WebView)findViewById(R.id.webView);
        Button  browser = (Button)findViewById(R.id.Browser);
        WebSettings webSettings = web.getSettings();
        webSettings.setJavaScriptEnabled(true);

        web.setWebChromeClient(new WebChromeClient());

        web.loadUrl("http://10.45.18.22:8080/feeds-portlet/List.jsp?a=xy@gmail.com");
        final Intent i =  new Intent(Intent.ACTION_VIEW, Uri.parse("http://10.45.18.22:8080/feeds-portlet/List.jsp?a=xy@gmail.com"));

        browser.setOnClickListener(new View.OnClickListener() {

public void onClick(View v){

       startActivity(i);
        }
        });
    }
我已经在webview中启用了javascript