material-components/material-components-android-codelabs

Can't even build the branch 101 starter or complete

HishamKsa opened this issue · 6 comments

I cloned the repo and open it and have only option to make the module,but when i do it shows success but no option to run the code ,neither does it show my connected device.
I can't build or run the code, what step am i missing?

I tried moving manifest file to top level but that didn't work.
I tried to delete java folder since i thought it's the same app written in java, but that didn't work either.

can someone tell me how to build & run this after cloning , with 4.1 version of android studio

WhatsApp Image 2020-10-21 at 7 09 41 PM

i tried importing by right clicking on build.gradle file in kotlin shrine folder but it didn't work

bandicam 2020-10-21 19-28-55-714

so this error occurred when I tried to import from inner most build.gradle file

bandicam 2020-10-21 19-33-46-044
bandicam 2020-10-21 19-35-21-976

now i build from the shown build.gradle file but not it says success but nothing appears on mobile screen

bandicam 2020-10-21 19-47-15-737

now here's my solution to this mess, i have downloaded this file material-components-android-codelabs-101-starter.zip and extracted out kotlin folder and opened that in android studio , it had one issue that androidX needs to be enabled in gradle.properties file so i did it now the app is running , if anyone else has more insight on what i am missing please let me know , i would really appreciate it .

When you open the project, after cloning it from github, don't open the root folder. Navigate down to either 'kotlin' or 'java', then select 'shrine' with the green android icon, and then press OK.