-
Notifications
You must be signed in to change notification settings - Fork 10
java.lang.UnsatisfiedLinkError slice-sqlite-jdbc-3.8.7 #1
Comments
Hi there I believe your issue may be with your IntelliJ setup or something specific to Android's JVM. See if this related error helps you: http://stackoverflow.com/questions/35792459/java-lang-unsatisfiedlinkerror-com-android-tools-fd-runtime-incrementalclassloa |
@ccook thanks. I've disabled instant run in Android studio, now the error is: couldn't find "libsqlitejdbc.so" So like you said, a library could not be found. Do you have any resources on how to use sqllite properly in android studio? |
No problem. According to this stackoverflow (http://stackoverflow.com/questions/27067400/using-libraries-in-android-project), you'll require the sqlite libraries specifically compiled for android. This makes some sense since the jdbc driver I'm using in this project is probably expecting x86_64 sqlite. Android c libraries are compiled using ARM architecture. I fear that the JDBC driver in this project is hard-coded to use the x86_64 version. You may have to fork the project to allow the JDBC Driver to use SQLDroid. You'd have to modify SQLHelper (https://github.com/imintel/mbtiles4j/blob/master/src/main/java/org/imintel/mbtiles4j/SQLHelper.java). When creating the library, I had the opposite problem (every java implementation was just a reader made specifically for android), so I never envisioned the project being used in android projects. |
Awesome, I think I can work from here. If you'd like you can post your answer on this stackoverflow: Thanks so much. |
hi @ccook, the android implementation is here: https://github.com/fullhdpixel/mbtiles4j If you'd like to help me make this available through build.gradle, that would be awesome. I haven't done that before |
@fullhdpixel did you finally made the library compatible with Gradle? I was so excited to see that you had done all this work of porting the MBTiles4J library to be Android compatible, but would like to use it as a Gradle dependency. |
Hi, im using the writer inside an Android App to create a new .mbtiles file in an AsyncTask class.
Here is my java code:
It cannot instantiate a new MBTilesWriter
Full error report on windows 10 x64 bit.
http://pastebin.com/raw/fhSH8qJr
build.gradle looks as follows
mbtiles4j is actually included inside my project: see screensot. There were other problems with including it through build.gradle, so I managed to workaround it like this. The mbtilesreader works fine!
The text was updated successfully, but these errors were encountered: