• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Xml parsing error tag mismatch?

komal9005

Lurker
Code:
<?xml version="1.0" encoding="utf-8"?>

<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
 xmlns:app="http://schemas.android.com/apk/res-auto"
 xmlns:tools="http://schemas.android.com/tools"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
 tools:context="abu.webview.MainActivity">

<android.support.v4.widget.SwipeRefreshLayout
 android:id="@+id/swipe"
 android:layout_width="match_parent"
 android:layout_height="match_parent">

<WebView
 android:id="@+id/webView"
 android:layout_width="match_parent"
 android:layout_height="match_parent">

</android.support.v4.widget.SwipeRefreshLayout>

</android.support.constraint.ConstraintLayout>



Above is my code i am getting xml parsing err tag mismatch
Where i goes wrong?
 
Last edited by a moderator:
It's your Webview element. You're missing a terminating forward slash

Code:
<WebView
 android:id="@+id/webView"
 android:layout_width="match_parent"
 android:layout_height="match_parent"/>
 
Back
Top Bottom