I get this error Error:(18, 56) error: cannot find symbol variable webView
Here is code of Activity
package com.example.luk
Id was mismatching
Change your layout like this
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.luke.sinhalasindu.Ruwan_Hettiaracchi" >
<WebView
android:id="@+id/webView"
android:layout_width="400dp"
android:layout_height="200dp" />
</RelativeLayout>
In java initialize WebView
variable like this
WebView view = (WebView) findViewById(R.id.webView);
From your layout
WebView view = (WebView) this.findViewById(R.id.webView);
should be
WebView view = (WebView) this.findViewById(R.id.webView1);
add android:id="@+id/webView"
on activity_main.xml