java.lang.NoSuchMethodError: No virtual method addChangeListener(Lio/realm/RealmChangeListener;)V in class Lio/realm/BaseRealm; or its super classes (declaration of 'io.realm.BaseRealm' appears in /data/data/com.monoapp/files/instant-run/dex/slice-io.realm-realm-android-library-2.0.0_94ee25b8bc2e86a7eff1a547a9e7a3e8b0e46464-classes.dex)

GitHub | jgvidotto | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android realm NoSuchMethodError: No virtual method addChangeListener

    Stack Overflow | 6 months ago | AND4011002849
    java.lang.NoSuchMethodError: No virtual method addChangeListener(Lio/realm/RealmChangeListener;)V in class Lio/realm/BaseRealm; or its super classes (declaration of 'io.realm.BaseRealm' appears in /data/data/com.monoapp/files/instant-run/dex/slice-io.realm-realm-android-library-2.0.0_94ee25b8bc2e86a7eff1a547a9e7a3e8b0e46464-classes.dex)
  2. 0

    Android realm NoSuchMethodError: No virtual method addChangeListener

    GitHub | 6 months ago | jgvidotto
    java.lang.NoSuchMethodError: No virtual method addChangeListener(Lio/realm/RealmChangeListener;)V in class Lio/realm/BaseRealm; or its super classes (declaration of 'io.realm.BaseRealm' appears in /data/data/com.monoapp/files/instant-run/dex/slice-io.realm-realm-android-library-2.0.0_94ee25b8bc2e86a7eff1a547a9e7a3e8b0e46464-classes.dex)

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      No virtual method addChangeListener(Lio/realm/RealmChangeListener;)V in class Lio/realm/BaseRealm; or its super classes (declaration of 'io.realm.BaseRealm' appears in /data/data/com.monoapp/files/instant-run/dex/slice-io.realm-realm-android-library-2.0.0_94ee25b8bc2e86a7eff1a547a9e7a3e8b0e46464-classes.dex)

      at io.realm.RealmBasedRecyclerViewAdapter.updateRealmResults()
    2. io.realm
      RealmBasedRecyclerViewAdapter.updateRealmResults
      1. io.realm.RealmBasedRecyclerViewAdapter.updateRealmResults(RealmBasedRecyclerViewAdapter.java:331)
      1 frame
    3. com.app.RealmSearch
      RealmSearchView.setAdapter
      1. com.app.RealmSearch.RealmSearchAdapter.filter(RealmSearchAdapter.java:126)
      2. com.app.RealmSearch.RealmSearchView.setAdapter(RealmSearchView.java:121)
      2 frames
    4. com.app
      FragmentSelecionaCliente$2.onClick
      1. com.app.FragmentSelecionaCliente.showDialog(FragmentSelecionaCliente.java:169)
      2. com.app.FragmentSelecionaCliente$2.onClick(FragmentSelecionaCliente.java:105)
      2 frames
    5. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:5201)
      2. android.view.View$PerformClick.run(View.java:21163)
      3. android.os.Handler.handleCallback(Handler.java:746)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:148)
      6. android.app.ActivityThread.main(ActivityThread.java:5443)
      6 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
      2 frames