Could Not Find Rippledrawable

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



Leave a reply



Submit