'RealmNoticeModelClass' has a primary key, use 'createObject(Class<E>, Object)' instead.

Samebug tips0

We couldn't find tips for this exception.

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

Stack trace

  • io.realm.exceptions.RealmException: 'RealmNoticeModelClass' has a primary key, use 'createObject(Class<E>, Object)' instead. at io.realm.Realm.createObjectInternal( at io.realm.Realm.createObject( at com.rana.sahaj.myyu.notice.NoticeOnItemSelectedActivity$1$2.onSuccess( at com.rana.sahaj.myyu.notice.NoticeOnItemSelectedActivity$1$2.onSuccess( at$ Source) at android.os.Handler.handleCallback( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke( at$ at at dalvik.system.NativeStart.main(Native Method)

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

5 times, last one