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

NoClassDefFoundError #9

Open
JordanLongstaff opened this issue Apr 13, 2020 · 2 comments
Open

NoClassDefFoundError #9

JordanLongstaff opened this issue Apr 13, 2020 · 2 comments

Comments

@JordanLongstaff
Copy link

My Android app crashes on load because of this error.

04-13 17:43:12.120 2604-2604/com.encircle E/dalvikvm: Could not find class 'de.jkeylockmanager.manager.implementation.lockstripe.-$$Lambda$StripedKeyLockManager$Q7lCNjZOz4-zbPVFixAXIfxGWoc', referenced from method de.jkeylockmanager.manager.implementation.lockstripe.StripedKeyLockManager.<init>
04-13 17:43:12.120 2604-2604/com.encircle E/AndroidRuntime: FATAL EXCEPTION: main
    java.lang.NoClassDefFoundError: de.jkeylockmanager.manager.implementation.lockstripe.-$$Lambda$StripedKeyLockManager$Q7lCNjZOz4-zbPVFixAXIfxGWoc
        at de.jkeylockmanager.manager.implementation.lockstripe.StripedKeyLockManager.<init>(StripedKeyLockManager.java:84)
        at de.jkeylockmanager.manager.implementation.lockstripe.StripedKeyLockManager.<init>(StripedKeyLockManager.java:62)
        at de.jkeylockmanager.manager.KeyLockManagers.newLock(KeyLockManagers.java:60)
...
@JordanLongstaff
Copy link
Author

I figured out the reason. You're using Arrays.setAll and passing in a lambda, but Arrays.setAll requires Android SDK level 24, but my app's minimum SDK version is 16.

I'm going to need you to revert your use of lambdas in the StripedKeyLockManager back to a for loop.

@JordanLongstaff
Copy link
Author

JordanLongstaff commented Apr 14, 2020

Actually, I notice that version 2.0.0 introduced use of Java 8 - is that change the only difference between version 1.2.0 and version 2.1.0? If so, you can probably ignore this.

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

No branches or pull requests

1 participant