xml - android.support.v7.widget.Toolbar not found (Android Studio) -


for round 2 weeks now, receive error message, whenever try preview .xml design-file in android studio project. relatively new whole topic i'd ask whether have answer.

the error message:
rendering problems:
following classes not found:
- android.support.v7.widget.toolbar

or

rendering problems:
following classes not found:
- android.support.v7.widget.cardview

one of .xml files:

<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.toolbar xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     android:orientation="vertical"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:id="@+id/toolbar_tabs"     android:background="@color/primarycolor"     app:contentinsetstart="0dp"     app:contentinsetend="0dp">     <relativelayout         android:layout_width="match_parent"         android:layout_height="match_parent">         <relativelayout             android:layout_width="match_parent"             android:layout_height="56dp">              <textview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:text="vplan app rc1"                 android:textappearance="?android:attr/textappearancemedium"                 android:textcolor="@color/white"                 android:textsize="20sp"                 android:layout_marginleft="16dp"                 android:fontfamily="sans-serif-medium"                 android:id="@+id/textview7"                 android:layout_marginstart="16dp"                 android:layout_centervertical="true"                 android:layout_alignparentleft="true"                 android:layout_alignparentstart="true" />               <imageview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 android:layout_alignparentright="true"                 android:layout_marginright="16dp"                 android:layout_margintop="16dp"                 android:layout_centerhorizontal="true"                 android:src="@drawable/ic_refresh"                 android:id="@+id/ic_refresh"/>          </relativelayout>         <com.astuetz.pagerslidingtabstrip             android:layout_width="match_parent"             android:layout_height="48dp"             android:background="@color/primarycolor"             android:textcolorprimary="@color/white"             android:textsize="14sp"             android:id="@+id/tabs"             android:layout_margintop="?attr/actionbarsize" />     </relativelayout>   </android.support.v7.widget.toolbar> 

also might help, here's build.gradle file support library located.

the build.grade file:

apply plugin: 'com.android.application'  android {     compilesdkversion 22     buildtoolsversion '22.0.1'     defaultconfig {         applicationid 'com.nocomment.vplanehs'         minsdkversion 10         targetsdkversion 22         versioncode 16         versionname '0.8.5_rc1'     }     buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     }     productflavors {     } }  dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')     compile project(':volley')     compile 'com.android.support:appcompat-v7:22.2.1'     compile 'com.android.support:cardview-v7:22.1.1'     compile 'com.android.support:recyclerview-v7:22.1.1'     compile 'com.android.support:support-v4:22.2.1'     compile 'com.jpardogo.materialtabstrip:library:1.0.9' } 

in project use volley libraries zxing's qr code reader.
i'd thankful if me. thank in advance!


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -