cannot find symbol method findViewById(int)

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Apr 28, 2017 9:12:58 PM via Website

Hey guys i'm getting this error and my app is not running support me please !
here is the fragment activity code

package info.androidhive.materialtabs.fragments;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;

import info.androidhive.materialtabs.R;

public class OneFragment extends Fragment{
WebView webView;

public OneFragment() {
    // Required empty public constructor

public void onCreate(Bundle savedInstanceState) {

public View onCreateView(LayoutInflater inflater, ViewGroup container,
                         Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    return inflater.inflate(R.layout.fragment_one, container, false);
    webView = (WebView) findViewById(;


You can see my screen also here