Closed mfissehaye closed 8 years ago
This library is not yet compatible with realm 2.0.0, duplicate of https://github.com/uPhyca/stetho-realm/issues/31. Only solution is to downgrade to 1.2.0 or don't use it.
Thank you @Dennis123789 .. I downgraded to 1.2.0. But now the function call Realm.init is not working. The method name init is not recognized. Do I even have to Realm.init() before other realm function calls; I mean can I just safely comment it out?
No, Realm.init(...) was introduced in 2.0.0. You only have to initialize it like this:
RealmConfiguration realmConfig = new RealmConfiguration.Builder(context).build();
Realm.setDefaultConfiguration(realmConfig);
Just look at the older 1.x documentation
What is context? How do I get it in my applciation class
Merhawi Fissehaye ----- Address ----- office: - mob: +251 (0) 97.305.3999 Web:--Email:merhawifissehaye@gmail.com
On Sat, Oct 1, 2016 12:12 PM, Dennis123789 notifications@github.com wrote: No, Realm.init(...) was introduced in 2.0.0. You only have to initialize it like this:
RealmConfiguration realmConfig = new RealmConfiguration.Builder(context).build(); Realm.setDefaultConfiguration(realmConfig);
Just look at the older 1.x documentation
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Application inherits from Context, just pass the application object itself using 'this'
@P1nGu1n is right, if you need help implementing Realm you should ask elsewhere. This is only for stetho-realm.
I've released Stetho-Realm 2.0.0 which supports Realm 2.0.0. Please try that.
I'll close this as a duplicate of #31.
If you have further questions, please use #31.
I am trying to get categories with this code in my MainActivity class
After launching inspect my device from chrome://inspect and trying to expand default.realm under Web SQL it throws error:
And the application fails. The application does not normally fail otherwise.
Here is the stack trace from Android Monitor: