Questions tagged [parceler]

Parcelable code generator for Google Android.

Parceler is a code generation library that generates the Android Parcelable boilerplate source code.

http://parceler.org

74 questions
1
vote
2 answers

Parceler error passing a Bundle from one Activity to another

I decided to use Parceler because it looks like a great library and it is very well supported by the author. I am using Parceler to wrap an object and pass it to another Activity in a Bundle. When I attempt to unwrap the object I am getting the…
Silver Sagely
  • 404
  • 1
  • 5
  • 10
1
vote
1 answer

How to test @parcel objects as if they were sent across activities

When I unit test @parcel annotated models, I get the same object (even when using Bundle, or Intent): @Test public void parcel() { MyObject myObject = new MyObject("123"); Parcelable parcelable = Parcels.wrap(myObject); MyObject in =…
mbmc
  • 5,024
  • 5
  • 25
  • 53
1
vote
2 answers

Issue with Java Parceler

I am building an Android app which connects to a REST server and I get this error in class that models server's response: Error:(16, 15) error: Parceler: Unable to find read/write generator for type java.lang.Object for…
Angel F.
  • 176
  • 1
  • 16
1
vote
0 answers

GSON custom deserialize a field into Parcel

I am using Retrofit and Parceler libraries in order to communicate with my server. The server has the following two API methods: GET /api/metadata/{id} that returns the following JSON { "id": 1, "active": true, "location": { …
Vadym
  • 964
  • 1
  • 13
  • 31
0
votes
1 answer

Error with Parcelable / Parceler when minifyEnabled true

I am getting the following error when I set minifyEnabled true: Unable to find generated Parcelable class for com.codeworks.myapp.FirestoreModel, verify that your class is configured properly and that the Parcelable class…
Kellin Strook
  • 487
  • 1
  • 5
  • 18
0
votes
1 answer

org.parceler.Parcel: No corresponding property found for constructor parameter when constructor contains boolean fields

I meet first time with this problem. I noticed that above exception is throw when @ParcelConstructor contains boolean fields. Maybe have you got any solutions to put in boolean values to constructor Regards Shogun
0
votes
1 answer

Parceler class not generating error in Android

I have a core branch where following dependencies is decalared implementation "org.parceler:parceler-api:$rootProject.ext.parcelVersion" annotationProcessor "org.parceler:parceler:$rootProject.ext.parcelVersion" I am declaring a dependency in one…
Prashant
  • 3,823
  • 3
  • 25
  • 40
0
votes
1 answer

Migrating to Gradle 3.0.0: Error - D8: Program type already present

I am migrating my Android project to Gradle 4.4 and Android Gradle plugin 3.1.2. It has a library module which depends on parceler library and defines its dependency as follows: build.gradle of library module: ... // parceler for serialization…
nayan
  • 181
  • 2
  • 8
0
votes
2 answers

Kotlin + Parceler + Realm

I'm trying to integrate Parceler library in a Kotlin project with Realm, but I'm facing with problems when I try to adapt an entity to Realm and Parcel. @Parcel(implementations = { EventRealmProxy::class.java }, value =…
Sami Issa
  • 1,695
  • 1
  • 18
  • 29
0
votes
0 answers

sending a list of unsupported type using parceler

I'm trying to send a List between two Activites using Parceler. This is what i've been trying to do: Intent intent = new Intent(SearchServices.this,…
Abdul2511
  • 153
  • 1
  • 4
  • 14
0
votes
1 answer

How can i serialize a Realm object which has a custom class

I'm having a problem with building Realm object which has a custom class. @Parcel( value = Parcel.Serialization.BEAN, analyze = { Message.class }) @RealmClass public class Message implements Comparable, RealmModel…
Jude KIM
  • 109
  • 1
  • 4
0
votes
0 answers

No virtual method error while using Parceler in Kotlin Android

I pass object Channel via Intent from one activity to another activity. I use Parceler. App crashes saying that it can't find virtual method getLatitude(). I got this error: --------- beginning of crash 06-30 16:28:48.501 E/AndroidRuntime: FATAL…
Rafael
  • 6,091
  • 5
  • 54
  • 79
0
votes
3 answers

error: incompatible types: Object cannot be converted to MyClass

I want to use @Parcel annotation instead of implementing Parcelable. So my class is : @Parcel public class UserSkillSpec { private final String TAG = getClass().getSimpleName(); private Skill skill; private int endorses = 0; …
Mojtaba
  • 382
  • 1
  • 3
  • 19
0
votes
1 answer

Does Parceler library use reflection?

In the description of the library, you can read that it uses code generation. A bit further you can read this: Be careful not to use private fields when using the default field serialization strategy as it will incur a performance penalty due to…
moud
  • 729
  • 9
  • 19
0
votes
1 answer

What do I do about a Context?

I have a class which is a subclass of ArrayAdpater, and I'm trying to make it parcable. I keep getting this error "Error:(21, 36) error: Parceler: Unable to find read/write generator for type android.content.Context for android.content.Context…