Tencent / wcdb

WCDB is a cross-platform database framework developed by WeChat.
Other
10.77k stars 1.41k forks source link

crash in android Q(failed to load ICU library) #476

Closed paulzengyi closed 5 years ago

paulzengyi commented 5 years ago

The language of WCDB

Java

The version of WCDB

com.tencent.wcdb:room:1.0.8

The platform of WCDB

Android

The installation of WCDB

gradle

What's the issue?

crash in android Q stack: com.tencent.wcdb.database.SQLiteException: failed to load ICU library. (code 1, errno -1): Database connection initializer failed. at com.tencent.wcdb.database.SQLiteConnection.nativeOpen(Native Method) at com.tencent.wcdb.database.SQLiteConnection.open(SQLiteConnection.java:254) at com.tencent.wcdb.database.SQLiteConnection.open(SQLiteConnection.java:238) at com.tencent.wcdb.database.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:502) at com.tencent.wcdb.database.SQLiteConnectionPool.open(SQLiteConnectionPool.java:216) at com.tencent.wcdb.database.SQLiteConnectionPool.open(SQLiteConnectionPool.java:208) at com.tencent.wcdb.database.SQLiteDatabase.openInner(SQLiteDatabase.java:997) at com.tencent.wcdb.database.SQLiteDatabase.open(SQLiteDatabase.java:978) at com.tencent.wcdb.database.SQLiteDatabase.openDatabase(SQLiteDatabase.java:707) at com.tencent.wcdb.support.Context.openOrCreateDatabase(Context.java:151) at com.tencent.wcdb.database.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:296) at com.tencent.wcdb.database.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:232) at com.tencent.wcdb.room.db.WCDBOpenHelper$OpenHelper.getWritableSupportDatabase(WCDBOpenHelper.java:101) at com.tencent.wcdb.room.db.WCDBOpenHelper.getWritableDatabase(WCDBOpenHelper.java:58) at android.arch.persistence.room.RoomDatabase.beginTransaction(RoomDatabase.java:252)

image

you fix this crash in wcdb-android-1.0.3. I run same code on android api 23,its ok

John-He-928 commented 5 years ago

Fixed in master branch

weizhenguo321 commented 3 years ago

请问从哪个版本开始修复的?