1

I have been using Parceler to serialize RealmObjects. After updating to version 1.2.0 of Realm, none of the RealmProxy classes are being generated.

I have cleaned and rebuilt the project several times unsuccessfully. Here is a snippet of the parceler.

@Parcel(implementations = {TrackRealmProxy.class}, value = Parcel.Serialization.BEAN, analyze = {Track.class})

Alex Kombo
  • 3,256
  • 8
  • 34
  • 67
  • 1
    There is no reason why it shouldn't generate the RealmProxy classes, do you get any error messages? Do you by chance have instant run on (you should turn it off)? – EpicPandaForce Sep 19 '16 at 22:02

2 Answers2

1

Update as on Realm 5.0.0

full package name is required with _ separator.

it will look like

import io.realm.com_example_test_SomeClassRealmProxy; 


@Parcel(implementations = {com_example_test_SomeClassRealmProxy.class},
value = Parcel.Serialization.BEAN,
analyze = {SomeClass.class})
Aks4125
  • 4,522
  • 4
  • 32
  • 48
0

Have you tried including a default empty constructor that doesn't have any parameters? Parceler has some issues without that default constructor.

class A(){ int attributeA; float attrubuteB; }

Morgan Koh
  • 2,297
  • 24
  • 24