Error:(18, 56) error: cannot find symbol variable webView

后端 未结 3 1405
粉色の甜心
粉色の甜心 2021-01-29 02:01

I get this error Error:(18, 56) error: cannot find symbol variable webView

Here is code of Activity

package com.example.luk         


        
3条回答
  •  有刺的猬
    2021-01-29 02:20

    Id was mismatching

    Change your layout like this

    
    
        
    
    
    

    In java initialize WebView variable like this

    WebView view = (WebView) findViewById(R.id.webView);
    

提交回复
热议问题