I'm implementing a class that implements Parcelable
and I'm using the Parceler
lib, but when I run the application the following error appears:
Error: Execution failed for task ': app: javaPreCompileDebug'. Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration. - parceler-1.0.3.jar (org.parceler: parceler: 1.0.3) Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future. See link for more details.
As the error is showing is a problem in the annotation I made in the class, but I can not understand what is wrong.
@org.parceler.Parcel
public class Carro
{
//Atributos da classe
private static final long serialVersionUID = 6601006766832473959L;
public long id;
public String tipo;
public String nome;
public String desc;
public String urlFoto;
public String urlInfo;
public String urlVideo;
public String urlLatitude;
public String urlLongitude;
@Override
public String toString() {
return "Carro{" + "nome-'" + nome + "/" + "}";
}
}
And no build.gradle
:
implementation 'org.parceler:parceler:1.0.3'
implementation 'org.parceler:parceler-api:1.0.3'
If anyone can help me thank you:)