I am learning android and i have come across following error, although i tried to sort it on my own by searching on the internet , i couldn't the exact reason. Need 
your kind help on this. 

SampleWebPageDetailFragment.java 

package y2kapps.master_detail_flow; 

import android.app.Activity; 
import android.support.design.widget.CollapsingToolbarLayout; 
import android.os.Bundle; 
import android.support.v4.app.Fragment; 
import android.view.LayoutInflater; 
import android.view.View; 
import android.view.ViewGroup; 
import android.webkit.WebView; 


import y2kapps.master_detail_flow.dummy.DummyContent; 

/** 
* A fragment representing a single SampleWebpage detail screen. 
* This fragment is either contained in a {@link SampleWebpageListActivity} 
* in two-pane mode (on tablets) or a {@link SampleWebpageDetailActivity} 
* on handsets. 
*/ 
public class SampleWebpageDetailFragment extends Fragment { 
/** 
* The fragment argument representing the item ID that this fragment 
* represents. 
*/ 
public static final String ARG_ITEM_ID = "item_id"; 

/** 
* The dummy content this fragment is presenting. 
*/ 
private DummyContent.DummyItem mItem; 

/** 
* Mandatory empty constructor for the fragment manager to instantiate the 
* fragment (e.g. upon screen orientation changes). 
*/ 
public SampleWebpageDetailFragment() { 


@Override 
public void onCreate(Bundle savedInstanceState) { 
super.onCreate(savedInstanceState); 

if (getArguments().containsKey(ARG_ITEM_ID)) { 
// Load the dummy content specified by the fragment 
// arguments. In a real-world scenario, use a Loader 
// to load content from a content provider. 
mItem = DummyContent.ITEM_MAP.get(getArguments().getString(ARG_ITEM_ID)); 

Activity activity = this.getActivity(); 
CollapsingToolbarLayout appBarLayout = (CollapsingToolbarLayout) activity.findViewById(R.id.toolbar_layout); 
if (appBarLayout != null) { 
appBarLayout.setTitle(mItem.id); 




@Override 
public View onCreateView(LayoutInflater inflater, ViewGroup container, 
Bundle savedInstanceState) { 
View rootView = inflater.inflate(R.layout.samplewebpage_detail, container, false); 

// Show the dummy content as text in a webView. 
if (mItem != null) { 
((WebView) rootView.findViewById(R.id.detail_area)).loadUrl(mItem.url); 


return rootView; 




***********Error Log**** 

02-09 13:51:41.759 4683-4683/? I/art: Not late-enabling -Xcheck:jni (already on) 
02-09 13:51:41.816 4683-4683/y2kapps.master_detail_flow W/System: ClassLoader referenced unknown path: /data/app/y2kapps.master_detail_flow-2/lib/x86 
02-09 13:51:42.219 4683-4708/y2kapps.master_detail_flow D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true 
02-09 13:51:42.326 4683-4708/y2kapps.master_detail_flow I/OpenGLRenderer: Initialized EGL, version 1.4 
02-09 13:51:42.449 4683-4708/y2kapps.master_detail_flow W/EGL_emulation: eglSurfaceAttrib not implemented 
02-09 13:51:42.449 4683-4708/y2kapps.master_detail_flow W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xad75fd00, error=EGL_SUCCESS 
02-09 13:51:48.244 4683-4683/y2kapps.master_detail_flow D/AndroidRuntime: Shutting down VM 
02-09 13:51:48.244 4683-4683/y2kapps.master_detail_flow E/AndroidRuntime: FATAL EXCEPTION: main 
Process: y2kapps.master_detail_flow, PID: 4683 
java.lang.RuntimeException: Unable to start activity ComponentInfo{y2kapps.master_detail_flow/y2kapps.master_detail_flow.SampleWebpageDetailActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class webView 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
at android.app.ActivityThread.-wrap11(ActivityThread.java) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:148)