failed to find style 'cardView Style' in current theme

前端 未结 4 1192
鱼传尺愫
鱼传尺愫 2020-12-29 01:22

After updating support library version 27.1.0 Android Studio unable to render CardView. It shows error message as

failed to fi         


        
4条回答
  •  梦毁少年i
    2020-12-29 01:47

    I also had the same problem, so I added

    @style/CardView
    

    in my styles.xml file. But it was showing a warning "The resource @style/CardView is marked as private in com.android.support:design".

    So, after that I tried this one

    @style/CardView.Light
    

    and this worked for me. I am using Android Studio 3.1.4 and Gradle 4.4.

提交回复
热议问题