Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ClassNotFoundException "android.support.v4.graphics.drawable.DrawableWrapper"

What can cause this error for class DrawableWrapper from the support lib?

Caused by: java.lang.ClassNotFoundException: Didn't find class 
"android.support.v4.graphics.drawable.DrawableWrapper" on path: 
DexPathList[[zip file "/data/app/com.example.banyan.tasty-
1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
like image 214
Hari Prasath Banyan Infotech Avatar asked Feb 28 '18 09:02

Hari Prasath Banyan Infotech


3 Answers

Try updating your support library to 27.1.0.

like image 193
irfano Avatar answered Oct 20 '22 18:10

irfano


Make sure all of your "com.android.support:*" dependencies are at the same version.

Looks like one of the support libraries uses something that is missing in the other one.

like image 20
Tomislav Avatar answered Oct 20 '22 19:10

Tomislav


i fixed same error updating version

implementation 'com.android.support:design:27.0.2'
implementation 'com.android.support:support-v4:27.0.2'

To

implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
like image 22
Erick Amoedo Avatar answered Oct 20 '22 20:10

Erick Amoedo