UnsatisfiedLinkError on android arm64-v8a

オープン
#1,266 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
32/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java
領域
database

調査の方向性

Start with native library loading in org.sqlite.core.NativeDB, where the stack trace fails, and inspect how the packaged arm64-v8a library is selected and loaded on Android 14. Reproduce the connection failure on the Motorola Moto E14 or a matching arm64-v8a Android environment; done means DriverManager.getConnection() opens the SQLite database successfully there.

索引モデルが issue の本文から書いたものです。

説明

troubleshooting

Describe the bug
The app throws a java.lang.UnsatisfiedLinkError when attempting to use the sqlite-jdbc library on a Motorola Moto E14 device.

To Reproduce
The error occurs during the initialization of a SQLite database connection using DriverManager.getConnection() with the org.sqlite.JDBC driver. The native libraries (.so files) extracted from the xerial/sqlite-jdbc JAR are included in the Android application package (APK) under the jniLibs directory, organized into architecture-specific folders: arm64-v8a, armeabi, x86, and x86_64.

Expected behavior
The app should successfully establish a connection to the SQLite database using the sqlite-jdbc library on the Motorola Moto E14 device, similar to its behavior on the majority of other tested Android devices.

Logs

Exception java.lang.UnsatisfiedLinkError:
  at java.lang.Runtime.loadLibrary0 (Runtime.java:1082)
  at java.lang.Runtime.loadLibrary0 (Runtime.java:1003)
  at java.lang.System.loadLibrary (System.java:1661)
  at org.sqlite.core.NativeDB.<clinit> (NativeDB.java:47)
  at org.sqlite.SQLiteConnection.open (SQLiteConnection.java:280)
  at org.sqlite.SQLiteConnection.<init> (SQLiteConnection.java:67)
  at org.sqlite.jdbc3.JDBC3Connection.<init> (JDBC3Connection.java:28)
  at org.sqlite.jdbc4.JDBC4Connection.<init> (JDBC4Connection.java:19)
  at org.sqlite.JDBC.createConnection (JDBC.java:106)
  at org.sqlite.JDBC.connect (JDBC.java:79)
  at java.sql.DriverManager.getConnection (DriverManager.java:580)
  at java.sql.DriverManager.getConnection (DriverManager.java:218)
  at org.jetbrains.exposed.sql.Database$Companion.connect$lambda$15 (Database.kt:308)

Environment:

OS: Android 14 (on Motorola Moto E14)
CPU architecture: arm64-v8a (Motorola Moto E14) - Unisoc T606
sqlite-jdbc version: tested with 3.43.0.0, 3.49.1.0

Additional context
I'm using Exposed on android.

主要言語
Java
スター
3.3k
フォーク
676
平均マージ
1日 15時間
マージ済み PR(30日)
18

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

xerial/sqlite-jdbc のほかの issue

xerial/sqlite-jdbc の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。