-
Notifications
You must be signed in to change notification settings - Fork 568
no "J" field "mNativeHandle" in class #644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @kinghom, Thanks for your interest in SQLCipher, this library is deprecated. Are you using ProGuard to produce this behavior? |
已经收到你的飞鸽传书啦....
|
The solution is just to omit the obfuscation of classes related to SQLCipher. proguard-rules.pro # SQLCipher: resolve Issue: no "J" field "mNativeHandle" in class
-keep class net.sqlcipher.** { *; }
-keep class net.sqlcipher.database.** { *; }
-keepclasseswithmembernames class * {
native <methods>;
}
-keep class * extends net.sqlcipher.database.SQLiteOpenHelper {
public <init>(...);
}
-keepclassmembers class * extends net.sqlcipher.database.SQLiteOpenHelper {
public <init>(...);
public void onCreate(net.sqlcipher.database.SQLiteDatabase);
public void onUpgrade(net.sqlcipher.database.SQLiteDatabase, int, int);
} PD: Appreciate that the SQLiteDatabase is the one that doesn't work when using obfuscation. |
已经收到你的飞鸽传书啦....
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No pending exception expected: java.lang.NoSuchFieldError: no "J" field "mNativeHandle" in class "Lnet/sqlcipher/database/SQLiteDatabase;" or its superclasses
sqlcipher version is 4.5.4
sqlite version is 2.2.0
I found this mistake after i modified minSdkVersion 26 —>25
logcat displays the wrong statement :SQLiteDatabase.loadLibs(context);
I saw an issue dealing with this problem
#442 (comment)
but its not work for me
The text was updated successfully, but these errors were encountered: