https://kotlinlang.org logo
a

Alexey Glushkov

06/06/2021, 4:00 PM
Hi, is there any way to understand what is the latest supported version of android gradle plugin for KMM? Now I use 7.0.0-alpha12 and it works with Compose well in
Android Studio Arctic Fox | 2020.3.1 Canary 12
. But when I try to switch to
2020.3.1 Beta 2
it requires gradle plugin 7.0.0-beta02 which, I suppose, isn’t supported by KMM. I think so as I get this error
Copy code
Please initialize at least one Kotlin target in 'shared (:shared)'
Should I keep using
2020.3.1 Canary 12
or there is a way to make beta work?
1
i

iamthevoid

06/06/2021, 5:40 PM
this error usually happens when gradle files not builded properly
try to build project from comandline
./gradlew assemble
for example
a

Alexey Glushkov

06/06/2021, 5:41 PM
one moment
i

iamthevoid

06/06/2021, 5:42 PM
most likely you'll see error cause
real cause, i mean
a

Alexey Glushkov

06/06/2021, 5:43 PM
hm, yes… you’re right
Copy code
> Failed to apply plugin 'com.android.internal.version-check'.
   > Minimum supported Gradle version is 7.0. Current version is 6.8.2. If using the gradle wrapper, try editing the distributionUrl in /Users/alexeyglushkov/androidProjects/WordTeacher/gradle/wrapper/gradle-wrapper.properties to gradle-7.0-all.zip
i

iamthevoid

06/06/2021, 5:43 PM
here you go
a

Alexey Glushkov

06/06/2021, 5:43 PM
forgot to update file here..
thanks