Skip to content
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

Java 8 compatibility causes plugin crash #727

Closed
NeoLSN opened this issue Dec 6, 2017 · 3 comments
Closed

Java 8 compatibility causes plugin crash #727

NeoLSN opened this issue Dec 6, 2017 · 3 comments

Comments

@NeoLSN
Copy link

NeoLSN commented Dec 6, 2017

Currently Sqlite plugin will crash when closing app if app is built base on Java 8. Since cordova-android@7.0.0 is ready to support Java 8 now, this would be an issue for app.

io.sqlc.SQLitePlugin.onDestroy

java.lang.NoSuchMethodError: No virtual method keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView; in class Ljava/util/concurrent/ConcurrentHashMap; or its super classes (declaration of 'java.util.concurrent.ConcurrentHashMap' appears in /system/framework/core-libart.jar)

And this is the issue https://gist.github.com/AlainODea/1375759b8720a3f9f094

brodycj pushed a commit to brodycj/Cordova-sqlite-storage-common-dev that referenced this issue Dec 8, 2017
… Android

FIXES storesafe#726 (keySet error)

THANKS to @NeoLSN (Jason Yang/楊朝傑) for pointer to the solution in
storesafe#727
brodycj pushed a commit to brodycj/Cordova-sqlite-storage-common-dev that referenced this issue Dec 8, 2017
… Android

FIXES storesafe#726 (keySet error)

THANKS to @NeoLSN (Jason Yang/楊朝傑) for pointer to the solution in
storesafe#727
brodycj pushed a commit to brodycj/Cordova-sqlite-storage-common-dev that referenced this issue Dec 11, 2017
… Android

FIXES storesafe#726 (keySet error)

THANKS to @NeoLSN (Jason Yang/楊朝傑) for pointer to the solution in
storesafe#727
@brodycj
Copy link
Contributor

brodycj commented Dec 11, 2017

Currently Sqlite plugin will crash when closing app if app is built base on Java 8. Since cordova-android@7.0.0 is ready to support Java 8 now, this would be an issue for app.
io.sqlc.SQLitePlugin.onDestroy

java.lang.NoSuchMethodError: No virtual method keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView; in class Ljava/util/concurrent/ConcurrentHashMap; or its super classes (declaration of 'java.util.concurrent.ConcurrentHashMap' appears in /system/framework/core-libart.jar)

And this is the issue https://gist.github.com/AlainODea/1375759b8720a3f9f094

Thanks @NeoLSN for reporting this issue along with the gist with the suggested solution. I am treating this as a duplicate of #726, should be solved by the suggested solution. Thanks again!

@mirko77
Copy link

mirko77 commented Dec 5, 2019

On an old app using 2.0.2, the minimum upgrade required would be 2.1.3? @brodybits @NeoLSN

@brodycj
Copy link
Contributor

brodycj commented Dec 5, 2019

Sounds right. I generally do not support old versions and recommend that you upgrade to the latest, if possible. There have been quite a few major bug fixes including security and data integrity fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants