Coder Social home page Coder Social logo

No implementation found for native Lnet/sqlcipher/database/SQLiteDatabase;.dbopen (Ljava/lang/String;I)V about android-database-sqlcipher HOT 14 CLOSED

pstegegn avatar pstegegn commented on August 15, 2024 1
No implementation found for native Lnet/sqlcipher/database/SQLiteDatabase;.dbopen (Ljava/lang/String;I)V

from android-database-sqlcipher.

Comments (14)

svaithia avatar svaithia commented on August 15, 2024 1

I forgot to call SQLiteDatabase.loadLibs(this); in my MainActivity, which gave me this error.

Once I added it, the code seemed to work fine for me.

from android-database-sqlcipher.

developernotes avatar developernotes commented on August 15, 2024

Hi pstegegn,

Could you verify that all of the native libraries were deployed? If you could run your application on an emulator and then issue the following in a terminal, please share the results:

adb shell
cd /data/data/[YourPackageName]  #possibly com.viber.voip
ls lib

from android-database-sqlcipher.

pstegegn avatar pstegegn commented on August 15, 2024

Hi Parker,
I have checked that the three of .so native libraries do exist. but icudt46l.zip is not deployed. There is only lib and databeses(which is empty) folder on appplication /data/data/com.viber.voip file directiry. I am using sqlcipher for android 1.1.0 and testing on android 2.3.7 platform.
Its been week trying to fix this error. thanks in advance

ls lib
libVoipEngineNative.so libsqlcipher_android.so
libdatabase_sqlcipher.so libstlport_shared.so

from android-database-sqlcipher.

developernotes avatar developernotes commented on August 15, 2024

Hi pstegegn,

The icudt46l.zip file belongs to the 2.0 release of SQLCipher for Android, it is not compatible with 1.1.0. If you are just integrating SQLCipher for the first time, it would be best to use the latest release, 2.0.5 which can be found here. The icu46dtl.zip file should be placed in your assets directory, but will be expanded into a folder called icu in the files directory on a 2.3.7 device. Could you try that and report back? Thanks!

from android-database-sqlcipher.

developernotes avatar developernotes commented on August 15, 2024

Hi pstegegn,

I received a message from you, but it isn't displaying here. You closed the issue and then reopened it. You mentioned some customizations to the sqlcipher.jar. Would it be possible for you to drop in the new 2.0.5 binaries to verify whether or not you see the same issue? Thanks!

from android-database-sqlcipher.

pavaniakella avatar pavaniakella commented on August 15, 2024

Can you post how you solved this problem...
Thanks in advance..

Regards,
Pavani

from android-database-sqlcipher.

developernotes avatar developernotes commented on August 15, 2024

Hi Pavani,

You can find a detailed article covering the setup of a project that uses SQLCipher for Android here. The issue above was a missing icudt46l.zip file in the assets folder of the application that is required.

from android-database-sqlcipher.

HansSchlegel avatar HansSchlegel commented on August 15, 2024

hi,
I get this message occasionally in my developer console. Shortly I was lucky to see it on one of my devices.

java.lang.UnsatisfiedLinkError: Native method not found: net.sqlcipher.database.SQLiteDatabase.dbopen:(Ljava/lang/String;I)V
at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method)
at net.sqlcipher.database.SQLiteDatabase.(SourceFile:1950)
at net.sqlcipher.database.SQLiteDatabase.openDatabase(SourceFile:900)
at net.sqlcipher.database.SQLiteDatabase.openOrCreateDatabase(SourceFile:943)
at net.sqlcipher.database.SQLiteOpenHelper.getWritableDatabase(SourceFile:112)

This happens only by chance and not very often. Still it is annoying. Do you know what is causing the problem? Seems more like a platform thing.

from android-database-sqlcipher.

developernotes avatar developernotes commented on August 15, 2024

Hi HansSchlegel,

The dbopen call is a native method, a likely cause is that the native .so files were not included in the apk package. Can you verify the contents of your apktool?

from android-database-sqlcipher.

HansSchlegel avatar HansSchlegel commented on August 15, 2024

hello developernotes,
I have ensured that the .so files are part of my apk. If they were missing I would assume to have this error every time. The thing is that I had this error only once on my device and few customer reported this error.

from android-database-sqlcipher.

developernotes avatar developernotes commented on August 15, 2024

Hi HansSchlegel,

The only other reason this might be occurring is if the client code is not calling SQLiteDatabase.loadLibs(...) as this call loads the native libraries into the running image to support calls such as dbopen. Please let us know if you are able to consistently reproduce the issue.

from android-database-sqlcipher.

pavaniakella avatar pavaniakella commented on August 15, 2024

It happened only because of the version of sqlcipher I was using which
contains older .zip file in assets folder. Please go through the link
provided by nick and replace ur files and check whether it re occurs or not.
On 9 May 2013 18:55, "Nick Parker" [email protected] wrote:

Hi HansSchlegel,

The only other reason this might be occurring is if the client code is not
calling SQLiteDatabase.loadLibs(...) as this call loads the native
libraries into the running image to support calls such as dbopen. Please
let us know if you are able to consistently reproduce the issue.


Reply to this email directly or view it on GitHubhttps://github.com//issues/58#issuecomment-17663936
.

from android-database-sqlcipher.

darshanz avatar darshanz commented on August 15, 2024

i m having the same problem, i can only see three .so files in data/data/com.technoguff.sciencequiz/libs
but i m not sure where does the zip file get extracted. there is not files directory.
is this issue solved?
hi @pstegegn , have you solved the issue.
I need help.

from android-database-sqlcipher.

developernotes avatar developernotes commented on August 15, 2024

Hi @pstegegn,

Can you attempt to run the SQLCipher for Android test suite - do those run properly for you? If so, can you compare your project configuration with that, looking for any differences?

from android-database-sqlcipher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.