I hope you can help me, I'm trying to implement autovalue in my android project, but the code is not been generated.
I added in app/build.gradle:
provided 'com.google.auto.value:auto-value:1.5.3'
annotationProcessor 'com.google.auto.value:auto-value:1.5.3'
annotationProcessor 'com.ryanharter.auto.value:auto-value-gson:0.7.0'
compile 'com.ryanharter.auto.value:auto-value-gson-annotations:0.7.0'
In android studio 3.0 default settings in compiler > annotation processors I checked Enable annotation processing, and selected Obtain processors from project classpath.
I created AutoValueGsonFactory class like this:
import com.google.gson.TypeAdapterFactory;
import com.ryanharter.auto.value.gson.GsonTypeAdapterFactory;
@GsonTypeAdapterFactory
public abstract class AutoValueGsonFactory implements TypeAdapterFactory {
// Static factory method to access the package
// private generated implementation
public static TypeAdapterFactory create() {
return new AutoValueGson_AutoValueGsonFactory();
}
}
Then I click on Build > Rebuild Project
But is not working, throw this error:
Error:(16, 20) error: cannot find symbol class AutoValueGson_AutoValueGsonFactory
What I'm doing wrong or what I'm missing?