Building sqldelight
IgorGanapolsky opened this issue · 3 comments
Hello,
whilst building the android project, I get this error:
Could not resolve com.squareup.sqldelight:gradle-plugin:1.0.0-kn0.9.1-a2.
> Could not parse module metadata https://dl.bintray.com/touchlabpublic/kotlin/com/squareup/sqldelight/gradle-plugin/1.0.0-kn0.9.1-a2/gradle-plugin-1.0.0-kn0.9.1-a2.module
> Unsupported format version '0.3' specified in module metadata. This version of Gradle supports format version 0.4 only.
I ran the command ./gradlew generateSqlDelightInterface
too.
Any ideas how to solve it?
I downgraded from 4.10 to 4.7 and got this error:
Minimum supported Gradle version is 4.10. Current version is 4.7.
I am on Android Studio 3.3 Canary
The gradle issue is somewhat temporary. Jetbrains is redoing their plugins for multiplatform. However, native and (to some degree) Android dependencies weren't resolving properly as of last week. I lost several whole days trying to make that work.
So, for today, it needs to be 4.7. I assume Jetbrains is pushing hard to have a lot of those dependency issues ironed out for Kotlinconf next week, but I'm speaking at Kotlinconf, so decided everything stays at gradle 4.7 and Kotlin/Native 0.9.1 till after the conference.
I actually use Intellij for this project, so haven't run into this particular issue. I would bet there's an override to tell Android Studio to ignore 4.7.
So, TL;DR, you either 1) need Intellij, 2) to find a setting for AS, or 3) wait a couple (few?) weeks.