MDC-102 Kotlin: "shr_product_card.xml" imports wrong "MaterialCardView"
oelhirai opened this issue · 1 comments
Describe the bug
When running and building the app at step 5 (displaying cards without data), I'm getting the following error:
java.lang.ClassNotFoundException: Didn't find class "android.support.design.card.MaterialCardView"
I started working with the 101-starter
branch, the bug is likely from using android.support.design.card.MaterialCardView
within shr_product_card.xml
. The 102-starter
branch correctly uses com.google.android.material.card.MaterialCardView
which resolved the issue for me.
To Reproduce
Steps to reproduce the behavior:
- Work through MDC-102 Step 5 using
101 starter
branch - Build and run the app
- Log in to Shrine
- See crash and error in logcat
Expected behavior
After logging into Shrine, I should see a grid of empty material cards with an app bar on top.
Codelab details (please complete the following information about the codelab):
This drove me crazy for 20 minutes trying to figure out what I did wrong. I love the code labs, I am really enjoying the challenge of finding the issues! Lol! This should be changed to make it easier for new developers. I really do enjoy the code labs, they usually help me find the small errors I tend to do myself.