I was try to use Google's @AutoValue. But, It's not working on my Intellij.
Step.1 I was maked this class
import com.google.auto.value.AutoValue;
@AutoValue
public abstract class Example {
public static Example create(String name, int integer) {
return new AutoValue_Example(name, integer);
}
public abstract String name();
public abstract int integer();
}
then
Step.2 typed this code into the build.gradle
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
compile group: 'com.google.auto.value', name: 'auto-value', version: '1.2'
}
Step.3 I had install AutoValue Plugin.
but Java complier give this error to me:
Error:(12, 20) java: cannot find symbol
symbol: class AutoValue_Animal
location: class Animal