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

no non-static method "Lio/realm/exceptions/RealmError;.<init>(Ljava/lang/String;)V" #1936

Closed
rshah opened this issue Dec 14, 2015 · 3 comments
Labels

Comments

@rshah
Copy link

rshah commented Dec 14, 2015

In my Crashlytics report, i received these errors(i'm using 0.84.1):
Is there a way to solve these errors?
Please let me know if you need more information.

Fatal Exception: java.lang.NoSuchMethodError: no non-static method "Lio/realm/exceptions/RealmError;.<init>(Ljava/lang/String;)V"
       at io.realm.internal.SharedGroup.nativeCommitAndContinueAsRead(SharedGroup.java)
       at io.realm.internal.SharedGroup.commitAndContinueAsRead(SharedGroup.java:99)
       at io.realm.internal.ImplicitTransaction.commitAndContinueAsRead(ImplicitTransaction.java:60)
       at io.realm.internal.SharedGroupManager.commitAndContinueAsRead(SharedGroupManager.java:117)
       at io.realm.BaseRealm.commitTransaction(BaseRealm.java:312)
       at io.realm.Realm.commitTransaction(Realm.java:111)
       at io.realm.BaseRealm.migrateRealm(BaseRealm.java:611)
       at io.realm.Realm.migrateRealm(Realm.java:1162)
       at io.realm.Realm.migrateRealm(Realm.java:1151)
       at io.realm.Realm.create(Realm.java:250)
       at io.realm.Realm.getDefaultInstance(Realm.java:200)

And

Fatal Exception: java.lang.NoSuchMethodError: no non-static method "Lio/realm/exceptions/RealmError;.<init>(Ljava/lang/String;)V"
       at io.realm.internal.SharedGroup.createNativeWithImplicitTransactions(SharedGroup.java)
       at io.realm.internal.SharedGroup.(SharedGroup.java)
       at io.realm.internal.SharedGroupManager.(SharedGroupManager.java)
       at io.realm.BaseRealm.(BaseRealm.java)
       at io.realm.Realm.(Realm.java)
       at io.realm.Realm.createAndValidate(Realm.java:280)
       at io.realm.Realm.create(Realm.java:244)
       at io.realm.Realm.getDefaultInstance(Realm.java:200)
@zaki50
Copy link
Contributor

zaki50 commented Dec 14, 2015

Seem to be the same with #1904
If you are using ProGuard, please update ProGuard rules(proguard-rules.pro).

The ProGuard configuration for Realm java 0.84.1 is described here https://realm.io/docs/java/0.84.1/#proguard

@rshah
Copy link
Author

rshah commented Dec 14, 2015

Thank you for the answer.
Upgrading my proguard rules now.

@zaki50
Copy link
Contributor

zaki50 commented Dec 14, 2015

@rshah I'll close this issue. Feel free to reopen this if you have further questions.

@zaki50 zaki50 closed this as completed Dec 14, 2015
@zaki50 zaki50 removed the Pending label Dec 14, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants