java - Rendering xml file in Android Studio -


this xml code in android studio. facing rendering problem in xml file.

<?xml version="1.0" encoding="utf-8"?> <relativelayout 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"     android:paddingbottom="@dimen/activity_vertical_margin"     android:paddingleft="@dimen/activity_horizontal_margin"     android:paddingright="@dimen/activity_horizontal_margin"     android:paddingtop="@dimen/activity_vertical_margin"     app:layout_behavior="@string/appbar_scrolling_view_behavior"     tools:context="com.example.admin.myapp1.mainactivity1"     tools:showin="@layout/activity_main1">      <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="hello world!"         android:id="@+id/textview" />      <textview         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:textappearance="?android:attr/textappearancelarge"         android:text="manab"         android:id="@+id/m_shaw"         android:layout_alignparentbottom="true"         android:layout_below="@+id/textview"         android:layout_alignstart="@+id/edittext" />      <edittext         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:id="@+id/edittext"         android:layout_below="@+id/textview"         android:layout_margintop="62dp"         android:layout_alignend="@+id/edittext2" />      <edittext         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:inputtype="textpassword"         android:ems="10"         android:id="@+id/edittext2"         android:layout_alignbottom="@+id/edittext"         android:layout_toendof="@+id/textview"         android:text="45645" />      <radiobutton         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="person1"         android:id="@+id/radiobutton"         android:layout_below="@+id/edittext"         android:layout_toendof="@+id/textview"         android:checked="true" />      <radiobutton         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="person2"         android:id="@+id/radiobutton2"         android:layout_below="@+id/radiobutton"         android:layout_toendof="@+id/textview"         android:checked="false" /> </relativelayout> 

error shown is-: exception raised during rendering: binary xml file line #-1: error inflating class , error java.lang.nosuchmethoderror: resolve problem.

seems have problem related gradle cache.
try next step "refresh" ide (android studio)

1. try choose file | invalidate caches/restart.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -