Could not find class 'android.graphics.drawable.RippleDrawable' android studio 2.2.3

梦想与她 提交于 2019-12-12 22:47:23

问题


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


回答1:


check your themes config. all themes must have a parent from AppCompat.

like this:

<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
    <item name="android:actionMenuTextColor">@android:color/white</item>
</style>

if you not specify the parent, the appcompat lib would have no effect.



来源:https://stackoverflow.com/questions/42448661/could-not-find-class-android-graphics-drawable-rippledrawable-android-studio-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!