material-components / material-components-android-codelabs

Codelabs for Material Components for Android (MDC-Android)
Apache License 2.0
220 stars 160 forks source link

No variants found for 'app.' #65

Open childslayer opened 4 years ago

childslayer commented 4 years ago

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.

childslayer commented 4 years ago

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

childslayer commented 4 years ago

ok nvm .....

R4Lpf commented 3 years ago

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

childslayer commented 3 years ago

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

goudekim commented 3 years ago

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.

thedroiddiv commented 3 years ago

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

dsnikam commented 2 years ago

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

davidavdav commented 1 year ago

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