Could not find RippleDrawable
The issue is that you need to return a Drawable instead of a RippleDrawable in getPressedColorRippleDrawable
. Otherwise, on pre-lollipop devices, you will get a VerifyError.
Could not find class 'android.graphics.drawable.RippleDrawable', Could not execute method for android:onClick, Android Studio
change this line
quantityTextView.setText(number);
to this :
quantityTextView.setText(String.valueOf(number));
or:
quantityTextView.setText(number+"");
Android Studio Error: E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable'
There is nothing to fix. This is merely mentioning that your code (e.g., a library) has a reference to a class (android.graphics.drawable.RippleDrawable
) that is not available on your device. Most likely, your device is running Android 4.4 or older, as this class was introduced in Android 5.0.
This particular message comes up all the time, as our code (e.g., appcompat-v7
) often refers to classes that we would like to use on newer devices but can avoid on older devices.
So, just ignore it.
Related Topics
How to Compile Ffmpeg-2.2.2 on Windows with Cygwin and Android Ndk R9C
How to Create an Android Activity and Service That Use Separate Processes
Change Chip Widget Style Programmatically Not Working - Android
How to Open One Particular Folder from Gallery in Android
Want to Load Desktop Version in My Webview Using Uastring
Why to Use Handlers While Runonuithread Does The Same
How to Make Grid View Scroll Horizontally Not Vertically in Android
Mat (Eclipse Memory Analyzer) - How to View Bitmaps from Memory Dump
Why Do Listview Items Not Grow to Wrap Their Content
How to Download Xml File from Server and Save It in Sd Card
How to Create Ripple Effect in Simple Layout
Android Stream Video from Google Drive
Objectanimator Animate Linearlayout Width
Placeholder Text for an Input Type="Number" Does Not Show in Webkit Ics
How to Get Rid of Incremental Annotation Processing Requested Warning