Hello, I started using the SQLDelight libraries in...
# squarelibraries
d
Hello, I started using the SQLDelight libraries in my KMP project last week and everything seems to work fine when I build the project on a MAC. However, building it on Windows gives me the following error:
Copy code
> A failure occurred while executing app.cash.sqldelight.gradle.VerifyMigrationTask$VerifyMigrationAction
   > 'void org.sqlite.core.NativeDB._open_utf8(byte[], int)'
Right before this, I see the following message in the build logs:
Copy code
Failed to load native library through System.loadLibrary
java.lang.UnsatisfiedLinkError: no sqlitejdbc in java.library.path: C:\Program Files\Java\jdk-17\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;.
Any ideas on how I can solve this problem? Is this a known bug? My project only targets Android and iOS so, I wasn't expecting to encounter "native" warnings or errors in my build on Windows.
👋🏻 1
s
In this case 'native' is actually referring to the iOS target. You can't build an app targeting iOS on Windows. You need MacOS in order to be able to build for iOS.
d
Thank you for your reply @Severiano Jaramillo, but I'm not trying to build the app for iOS. This error occurs while building the common source set in the
verifyMigration
task. This task is called while trying to build the Android App.
s
Oh got it @Daniel Schröder. I don't have a Windows computer so I can't really test. After a second look at your shared logs, 'native' does not seem to refer to iOS, but to a native dependency sqlitejdbc that isn't installed on your Windows computer.
This SQLDelight issue seems relevant
d
Thank you @Severiano Jaramillo. I'll monitor this issue and see if I can do some workaround to make this work. :)
🤞 1