android - Exception in DrawerLayot component after switching to appCompat and v4 to 23.0.1 -


i working drawer layout , after updating app build version 23.0.1 ,i facing below exception

java.lang.nosuchmethoderror: no static method getlayoutdirection(landroid/graphics/drawable/drawable;)i in class landroid/support/v4/graphics/drawable/drawablecompat 

my drawer layout .xml file below

 <android.support.v4.widget.drawerlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/drawer_layout"     android:layout_width="match_parent"     android:layout_height="match_parent" >       <linearlayout         android:layout_width="match_parent"         android:layout_height="match_parent"         android:orientation="vertical">          <include             layout="@layout/toolbar"             android:layout_width="match_parent"             android:layout_height="wrap_content" />          <viewstub             android:id="@+id/activity_main_content_stub"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_alignparenttop="true"/>     </linearlayout>       <!-- navigation drawer -->     <!-- navigation drawer -->     <android.support.design.widget.navigationview         android:id="@+id/navview"         android:layout_width="wrap_content"         android:layout_height="match_parent"         android:layout_gravity="left">     <listview         android:id="@+id/left_drawer"         android:layout_width="260dp"         android:layout_height="match_parent"         android:layout_gravity="left"         android:background="@color/nav_drawer_bg_color"         android:choicemode="singlechoice"         android:divider="@android:color/transparent"         android:listselector="@color/transparent"                       android:dividerheight="0dp"/>     </android.support.design.widget.navigationview>  </android.support.v4.widget.drawerlayout>     </android.support.v4.widget.drawerlayout> 

and build .gradle app

    apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services'  android {     compilesdkversion 23     buildtoolsversion '23.0.1'      defaultconfig {         applicationid "com.file.operator.help"         minsdkversion 10         targetsdkversion 23         versioncode 1         versionname "1.0"     }      buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'         }     }      packagingoptions {         exclude 'meta-inf/dependencies.txt'         exclude 'meta-inf/dependencies'         exclude 'meta-inf/dependencies.txt'         exclude 'license.txt'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/license'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/lgpl2.1'         exclude 'meta-inf/notice.txt'         exclude 'meta-inf/notice'         exclude 'meta-inf/notice.txt'     } } configurations {     all*.exclude group: 'com.android.support', module: 'support-v4' } dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')     compile 'com.google.android.gms:play-services:7.8.0'     compile 'com.android.support:appcompat-v7:23.0.1'     compile 'com.google.code.gson:gson:2.3.1'     compile 'com.journeyapps:zxing-android-embedded:3.0.2@aar'     compile 'com.google.zxing:core:3.2.0'     compile 'com.android.support:support-v4:23.0.1'     compile 'com.android.support:design:23.0.1'     compile project(':licenseplatesannerlibrary')     compile project(':cardflight-sdk')`enter code here`     compile files('libs/cwac-sackofviewsadapter.jar')     compile files('libs/mint-4.0.7.jar')     compile files('libs/universal-image-loader-1.9.0.jar') } 

thank in advance .any appreciated

had same problem after upgrading android support libraries latest version. solution remove support library dependencies project , re-add them starting support design library, , appcompat etc.. design library has dependency against latest appcompat, despite other answer not replacement appcompat.

i imagine problem down clash of versions, or stuck in cache.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -