Error with cardView in android: 'Failed to find style with id 0x7fff0062 in current theme -


here xml file:

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:card_view="http://schemas.android.com/apk/res-auto" 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" android:background="#009688" tools:context="com.echodevteam.isaac.echo_simplyawesome.login" android:nestedscrollingenabled="false">  <textview     android:layout_width="wrap_content"     android:text="echo"     android:textsize="60sp"     android:textcolor="#fff"     android:id="@+id/echotext"     android:layout_height="wrap_content"     android:layout_margintop="44dp"     android:layout_alignparenttop="true"     android:layout_centerhorizontal="true" />  <textview     android:layout_width="wrap_content"     android:text="simply awesome"     android:textcolor="#fff"     android:textsize="30sp"     android:id="@+id/simplytext"     android:layout_height="wrap_content"     android:layout_below="@+id/echotext"     android:layout_centerhorizontal="true" />  <android.support.v7.widget.cardview     android:layout_width="350dp"     xmlns:card_view="http://schemas.android.com/apk/res-auto"     android:id="@+id/cardviewlogin"     android:background="#fff"     android:layout_margin="20dp"     card_view:cardelevation="18dp"     android:layout_height="350dp"     android:layout_below="@+id/simplytext"     android:layout_centerhorizontal="true">      <relativelayout         android:layout_width="match_parent"         android:layout_height="match_parent">          <textview             android:layout_width="wrap_content"             android:text="welcome back!"             android:layout_margin="10dp"             android:textcolor="#009688"             android:textsize="28sp"             android:layout_height="wrap_content"             android:layout_alignparenttop="true"             android:layout_centerhorizontal="true" />          <edittext             android:layout_width="240dp"             android:background="@drawable/edit_text"             android:inputtype="textpersonname"             android:textcolor="#000"             android:id="@+id/etuname"             android:textcolorhint="#e0e0e0"             android:layout_height="40dp"             android:layout_alignparenttop="true"             android:layout_centerhorizontal="true"             android:layout_margintop="52dp" />          <edittext             android:layout_width="240dp"             android:background="@drawable/edit_text"             android:textcolor="#000"             android:id="@+id/etpass"             android:inputtype="textpassword"             android:textcolorhint="#e0e0e0"             android:layout_height="40dp"             android:layout_below="@+id/etuname"             android:layout_marginright="30dp"             android:layout_margintop="30dp"             android:layout_marginbottom="30dp"             android:layout_alignleft="@+id/etuname"             android:layout_alignstart="@+id/etuname" />          <checkbox             android:layout_width="wrap_content"             android:id="@+id/showbox"             android:visibility="visible"             android:layout_height="wrap_content"             android:layout_alignbottom="@+id/etpass"             android:layout_torightof="@+id/blogin"             android:layout_toendof="@+id/blogin" />          <button             android:layout_width="240dp"             android:background="#009688"             android:textcolor="#fff"             android:text="login"             android:textsize="20sp"             android:id="@+id/blogin"             android:layout_height="38dp"             android:layout_below="@+id/etpass"             android:layout_alignleft="@+id/etpass"             android:layout_alignstart="@+id/etpass" />          <textview             android:layout_width="wrap_content"             android:textcolor="#000"             android:text="forgot password? tap here."             android:textsize="15sp"             android:id="@+id/forgottext"             android:layout_height="wrap_content"             android:layout_below="@+id/blogin"             android:layout_centerhorizontal="true" />          <button             android:layout_width="240dp"             android:background="#009688"             android:text="register"             android:textcolor="#fff"             android:textsize="20sp"             android:id="@+id/bregister"             android:layout_height="38dp"             android:layout_below="@+id/forgottext"             android:layout_marginright="22dp"             android:layout_margintop="22dp"             android:layout_marginbottom="22dp"             android:layout_alignleft="@+id/blogin"             android:layout_alignstart="@+id/blogin" />       </relativelayout>      </android.support.v7.widget.cardview>      </relativelayout> 

here manifest:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.echodevteam.isaac.echo_simplyawesome">  <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.change_network_state" /> <uses-permission android:name="android.permission.access_network_state" />  <application     android:allowbackup="true"     android:icon="@mipmap/ic_launcher"     android:label="@string/app_name"     android:supportsrtl="true"     android:theme="@style/apptheme">     <activity android:name=".login">         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity>     <activity         android:name=".userinterfeone"         android:label="@string/title_activity_user_interfe_one"         android:theme="@style/apptheme"></activity> </application>  </manifest> 

i appreciate if me fix code card view. have in gradle compile 'com.android.support:cardview-v7:23.1.1'. getting error "failed find style id 0x7fff0062 in current theme"

try rebuild project, build --> rebuild project.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -