Mpandroidchart: NoSuchMethodError: io.realm.RealmResults.sort

Created on 28 May 2016  ·  7Comments  ·  Source: PhilJay/MPAndroidChart

Hi,
I setup the line chart example with realm and when I run it it gives me this error:

java.lang.NoSuchMethodError: io.realm.RealmResults.sort
       at com.github.mikephil.charting.data.realm.base.RealmBaseDataSet.<init>(RealmBaseDataSet.java:72)

I'm using the classpath realm plugin classpath "io.realm:realm-gradle-plugin:0.90.1" and MPAndroid uses provided 'io.realm:realm-android:0.87.5', could this be the reason??

Most helpful comment

I am aware of the issue, the new release v3.0.0 will contain a fix and allow to use the latest realm version.

All 7 comments

I copied library code into my project and removed MPAndroid dependency from build.gradle and it worked. I think you should update realm version of the library to the latest version

Same problem here. I can't seem to get it to work with Realm 1.0.0.
I'd really like to use this feature.

Same error. I'm just manually cycling through the Realm result set for now

I am aware of the issue, the new release v3.0.0 will contain a fix and allow to use the latest realm version.

Is there a workaround for this until v3.0.0 is released?

Just cycle through your ResultSet manually. It's the simplest way for now.
Am 20.06.2016 11:44 schrieb "Lennart Goedhart" [email protected]:

Is there a workaround for this until v3.0.0 is released?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/PhilJay/MPAndroidChart/issues/1823#issuecomment-227096609,
or mute the thread
https://github.com/notifications/unsubscribe/AAE7sZ1etCuRk8tBedi1zfrPhawom3O5ks5qNmDogaJpZM4IpGhk
.

All realm related features have now been moved to a separate repository: MPAndroidChart-Realm.

This library is based on the latest version of realm.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AiTheAnswer picture AiTheAnswer  ·  3Comments

AndroidJiang picture AndroidJiang  ·  3Comments

rohitkumarbhagat picture rohitkumarbhagat  ·  3Comments

ChenZeFengHi picture ChenZeFengHi  ·  3Comments

Giammaofwar picture Giammaofwar  ·  3Comments