material-components / material-components-android-codelabs

Codelabs for Material Components for Android (MDC-Android)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No variants found for 'app.'

childslayer opened this issue · comments

Hello.
MY POV
-Download zip file
-Opened it
-Opened Android Studio
-Clicked on "Open an existing Android Studio project."
-material-components-android-codelabs-102-starter/kotlin/shrine
(couldn't go material-components-android-codelabs-102-starter/kotlin because it won't work)
-error pops up
No variants found for 'app'. Check build files to ensure at least one variant exists.

ok well i wasted so much time lol just clone it on no activity :/

ok nvm .....

Wait what are you supposed to do to fix this issue exactly?

I gave up lol. I suggest creating ur own app and implementing shrine's features. Or what I did, just implement it whenever I need it lol

Fixed the first error with missing dependencies. Then the "app" error popped up. Apparently the gradle settings is looking for an "include ':app' file. Still broken since Im new to this gobbledeegook. Not very impressed so far.

Just see what sdk-version it is using.
Then go to File->Settings->Appearance and Behaviour->System Settings->Android SDK
Check the specific version of API Level and install it.

I had same issue and found out that API Level - 28 was missing.
Screenshot from 2021-05-11 09-05-34

Just see what sdk-version it is using. Then go to File->Settings->Appearance and Behaviour->System Settings->Android SDK Check the specific version of API Level and install it.

I had same issue and found out that API Level - 28 was missing. Screenshot from 2021-05-11 09-05-34

This solution worked for me.
thanks a lot

For what it worth, in my case (for a completely unrelated project) I had to increase the memory for the JVM in grade.properties

org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8