java.lang.RuntimeException

Unable to start activity ComponentInfo{commerce.product/commerce.product.MainActivity}: io.realm.exceptions.RealmException: class commerce.product.Product is not part of the schema for this Realm.


Samebug tips2

Disable Instant run in Android Studio.

Annotation processor is not running in your project. Clean and rebuild your project. You can also delete .apt_generated folder, for a cleaner build.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web55383

Solution icon of github
Unable to start activity ComponentInfo{commerce.product/commerce.product.MainActivity}: io.realm.exceptions.RealmException: class commerce.product.Product is not part of the schema for this Realm.

Solution icon of github
Unable to start activity ComponentInfo{com.lt.com.lt.ui.activities.MainActivity}: io.realm.exceptions.RealmException: class com.lt.model.Order is not part of the schema for this Realm.

Solution icon of github
Unable to create application com.example.MyApp.Application.MyApp: io.realm.exceptions.RealmException: class com.example.MyApp.Model.TMSettings is not part of the schema for this Realm.

Solution icon of github
Unable to start activity ComponentInfo{io.realm.examples.realmadapters/io.realm.examples.realmadapters.AdapterExampleActivity}: java.lang.IllegalArgumentException: TimeStamp is not part of the schema for this Realm

Solution icon of github
Unable to start activity ComponentInfo{com.thoughtworks.jizhang.realmdemo/com.thoughtworks.jizhang.realmdemo.MainActivity}: java.lang.IllegalArgumentException: RealmUser is not part of the schema for this Realm

Solution icon of github
Unable to start activity ComponentInfo{com.plzjoinus.plzjoinus/com.plzjoinus.plzjoinus.Activities.LoginActivity}: java.lang.IllegalArgumentException: AccessToken is not part of the schema for this Realm

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.ga.xuser/com.example.ga.xuser.View.Activities.Profile}: java.lang.IllegalArgumentException: User is not part of the schema for this Realm

Solution icon of github
Unable to start activity ComponentInfo{com.poupacerto.app/com.poupacerto.app.ui.activities.SplashActivity}: java.lang.IllegalArgumentException: User is not part of the schema for this Realm

Solution icon of github
Unable to start activity ComponentInfo{com.tst.nikita.newsapp/com.tst.nikita.newsapp.presentation.view.activity.NewsListActivity}: java.lang.IllegalArgumentException: NewsModelData is not part of the schema for this Realm

Solution icon of stackoverflow
Unable to start activity ComponentInfo{com.example.francisco.helloworld/com.example.francisco.helloworld.MainActivity}: java.lang.IllegalArgumentException: ItemCatalog is not part of the schema for this Realm

Stack trace

  • java.lang.RuntimeException: Unable to start activity ComponentInfo{commerce.product/commerce.product.MainActivity}: io.realm.exceptions.RealmException: class commerce.product.Product is not part of the schema for this Realm. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: io.realm.exceptions.RealmException: class commerce.product.Product is not part of the schema for this Realm. at io.realm.internal.RealmProxyMediator.getMissingProxyClassException(RealmProxyMediator.java:217) at io.realm.DefaultRealmModuleMediator.copyOrUpdate(DefaultRealmModuleMediator.java:101) at io.realm.Realm.copyOrUpdate(Realm.java:1272) at io.realm.Realm.copyToRealm(Realm.java:727) at commerce.product.MainActivity.onCreate(MainActivity.java:71) at android.app.Activity.performCreate(Activity.java:5990) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

6 times, 1 year ago