material-components-android-codelabs icon indicating copy to clipboard operation
material-components-android-codelabs copied to clipboard

No variants found for 'app.'

Open childslayer opened this issue 4 years ago • 8 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.

childslayer avatar Nov 25 '20 04:11 childslayer

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

childslayer avatar Nov 26 '20 03:11 childslayer

ok nvm .....

childslayer avatar Nov 26 '20 04:11 childslayer

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

R4Lpf avatar Jan 20 '21 18:01 R4Lpf

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

childslayer avatar Jan 20 '21 18:01 childslayer

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.

goudekim avatar Feb 23 '21 17:02 goudekim

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

thedroiddiv avatar May 11 '21 03:05 thedroiddiv

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

dsnikam avatar Jan 21 '22 16:01 dsnikam

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

davidavdav avatar May 16 '23 08:05 davidavdav