Error when adding CardView to layout

前端 未结 7 1272
借酒劲吻你
借酒劲吻你 2020-12-17 15:20

I wanted to try out the new toys that google gave us and I\'ve run into some trouble.

Here is my build.gradle:

apply plugin: \'com.android.applicatio         


        
7条回答
  •  执笔经年
    2020-12-17 15:54

    Go to app, right click on: Open module -> Settings -> Dependencies.

    Go to "Declared dependencies" and you will find the "+" sign under the title.

    Click on "Library dependencies".

    Search for "Material" and go to "version section".

    Apply 1.0.0 and click "ok".

    And then search for card view you will get it on and the class

提交回复
热议问题