SQLite Forum

Local Database is not creating in NDK android app
Login
Hi team,

I am working on 32bit to 64bit migration in NDK applicaiton. My Project following below libraries:
libssl.so, libcrypto.so (FIPS compatible), libc++_shared.so, libart.so, libcrashlytics.so, libz.so, libcrashlytics-envelope.so and libcurl.a.

1. Minimum SDk support - 24 (Android API)
2. CMake minimum required version - 3.4.1

After migrating project to 64bit device (ABI: arm64-v8a) support, the application is crashing while creating local database in Android. I am not using any external library or '.so' libs. I am using local database Sqlite3 of android.jar (extended class name - SqliteOpenHelper). 

Application is crashing in Samsung and Realme devices:
1. Samsung A7
2. Samsung M40
3. Samsung S9
4. Samsung S10
5. Realme C2

But applicaiton is working fine in One plus(7, 7pro, 5) and Nokia 6.1 plus.

I have tried to create database at other location but it's not creating

Error: Fatal signal 11 (SIGSEGV), code 2, fault addr 0x766908c0 in tid 9716 , pid 9716


When I checked for 32bit, it's working fine and database is created at
/data/data/<app package>/database/<database name>

Is there any compatibility issue?

Please help me.
Thanks!