Anyone ever see this error migrating to SqlDelight...
# squarelibraries
k
Anyone ever see this error migrating to SqlDelight 2.0 from 1.5.2?
Copy code
Could not find androidx.sqlite:sqlite:2.4.0.
Required by:
    project :app
    project :app > app.cash.sqldelight:android-driver:2.0.2
I even tried add the implementation for:
Copy code
androidx-sqlite = { module = "androidx.sqlite:sqlite", version = "2.4.0" }
w/o luck. I haven't found anything searching this channel or the issues on the sqldelight repo too. I'm using the
Copy code
sqldelight-android-driver = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }
artifact for the android driver as specified in the docs for 2.0 thought it's confusing that the 2.0 upgrade guide says to use this instead: implementation("app.cash.sqldelightsqlite driver2.0.0") but if I use that, the "AndroidSqliteDriver" class doesn't exist 🤔 (this is a plain Android app...not KMM)
✅ 1
h
Did you add the Google maven repository? This could explain the first error message. Regarding sqlite-driver: Sounds like a bug in documentation, use the android driver on android.
k
Yep, had it. Turned out I had a VPN turned on and it looks like dl.google.com doesn't like it mind blown Yep, docs are wrong. Also they're missing a bit about using srcDirs to replace sourceFolders.