android.support.v7.widget.CardView could not be found (Android Studio 1.1 Preview)

后端 未结 7 1676
既然无缘
既然无缘 2020-12-10 00:22

\"enter

I\'m trying to add CardView to my activity as the official sample. But it does

7条回答
  •  一向
    一向 (楼主)
    2020-12-10 01:12

    I was facing this issue because of the corruption of cached cardview aar.

    Gradle was picking local cached version of cardview. Also works by changing the library version but make sure you are not overriding configurations.all

    Solution:

    Close Android Studio, In windows goto C:\Users\Qamar\.gradle\caches and search cardview delete your version folder, clean and rebuild.

    Using: Android Studio 3.3 and gradle:3.2.1

提交回复
热议问题