Android.graphics.drawable.RippleDrawable error

At first, my target API was 22 (Android L). Everything was fine until I reduced my target API to 19 to support Android 4.4 (Kitkat). Now I get this strange error. The application will not work, but only some of the usual buttons disappear. I install my layout through an XML file and through code. Error

Could not find class 'android.graphics.drawable.RippleDrawable' referenced by android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering method

Does anyone know what causes this error? How can I solve it?

My dependencies:

compile 'com.android.support:appcompat-v7:24.2.1' compile 'com.android.support:design:24.2.1' compile 'com.android.support:support-v4:24.2.1' compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha9' 

Update: I moved each Vector file to a new folder drwabale-v21. Now I get this error .:

Android.view.InflateException: binary string of XML file # 11: bloating error at class android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2184) at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2233) with at

....

Unfortunately, Android 4.4 does not support vector drawings. What can I do, do you support vector drawings for => Android 4.4?

+6
source share
1 answer

I also had the same problem in the last 2 hours. Thanks to the comment from Dominic and the Android Package Page that helped me find the lines below to solve it

 implementation 'com.android.support:support-compat:26.1.0' implementation 'com.android.support:support-core-utils:26.1.0' implementation 'com.android.support:support-core-ui:26.1.0' 
+1
source

All Articles