iangkub / sqlite4java

Automatically exported from code.google.com/p/sqlite4java
0 stars 0 forks source link

Couldn't load sqlite4java-android-armv6l #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have an android 2.1 app and a separate JRE 1.6 jar library with core methods 
of the app, compatible with other java apps. The core uses sqlite4java.

When I use the core jar with a JRE 1.7 java app, sqlite4java works fine, 
loading sqlite4java-win32-x86.dll on W7 environment.

When I try it with an Android app, it complains of "Couldn't load 
sqlite4java-android-armv6l". If I look at the libraries that sqlite4java comes 
with, there is libsqlite4java-android-armv7.so but not any one reffering to 
armv6l.

Am I doing something wrong?

Original issue reported on code.google.com by miqm...@gmail.com on 31 May 2012 at 6:13

GoogleCodeExporter commented 9 years ago
You don't do anything wrong, it looks like your Android device is armv6l 
platform, while sqlite4java has a binary for armv7 platform. 

Perhaps there's a chance armv7 or armv5te would load on your device - try 
renaming libsqlite4java-android-armv7.so to libsqlite4java-android.so (armv5 
binary is available as a separate download from the project home page)

Hope this helps! If not, the binary should be built for your platform 
specifically.

Igor

Original comment by ser...@gmail.com on 5 Jun 2012 at 5:19

GoogleCodeExporter commented 9 years ago
Thanks for the answer. At the moment I changed to sqldroid. Like that I hope to 
be platform independent.

Btw, if it is for someone interesting, I have been testing with java 7 and 
sql4java has been working fine.

Miguel

Original comment by miqm...@gmail.com on 5 Jun 2012 at 6:11

GoogleCodeExporter commented 9 years ago
Miguel, thanks for the update!

Original comment by ser...@gmail.com on 5 Jun 2012 at 6:24