Am having problem with Proguard in release build

In debug build this code executes fine

Art art = new Art(randomStore, nPrice, pictureCount,null, productId, posterId, posterPhone,posterWhatsApp,state,region,advertTitle,category, type, size,artTitle, description);

            // Create Post  in Art Cloud DB
            Backendless.Data.of(Art.class).save(art, new AsyncCallback<Art>() {

                @RequiresApi(api = Build.VERSION_CODES.O)
                @Override
                public void handleResponse(Art object) {

                    //object saved

                }

                @Override
                public void handleFault(BackendlessFault fault) {

                   
                    Log.e(getClass().getName(), "Save Fault:" + fault.toString()+fault.getMessage());

                }
            });

But when i enable proguard in release build i get this error

Fault:BackendlessFault{ code: ‘8001’, message: ‘Duplicate property: description’
I’ve checked my Table fields, they are all in order.Description field doesnt have any duplicate.

I already have this rule in my proguard file

#backendless
-dontwarn com.backendless.** -dontwarn weborb.** -keep class weborb.** {;}
-keep class com.backendless.** {
;}

Is there another rule i should be aware of?

Hi.
What if you put breakpoint just right before save operation and look through the object you are saving or (if you can) a little deeper (till the serialization point) and check the fields?
For now i cannot say anything for sure. We need more time for investigation. Inner task: [BKNDLSS-26354].

I still can’t spot where the problem is

Let’s focus on the description field for now. What is the name of the class where the field is declared? Could you please post the source of that class here?

package ng.antigram.CloudDB;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Data
@Builder
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor

//@Entity
public class Art{

private int Store;
private int Price;
private int PictureCount;

private String objectId; //this is required for deleting record
private String ProductId; //Globally Unique Identifier

private String PosterId;

private String PosterPhone;
private String PosterWhatsApp;

private String State;
private String Region;

private String AdvertTitle;
private String Category;
private String Type;
private String Size;
private String ArtTitle;
private String Description;

}

Hi.
As a test could you try to rewrite you code without using the lombok?

I have done that, but the problem persists

Hello @Nkekere_Tommy_Minimann

We will investigate your problem and respond as soon as possible.

Regards,
Inna