I write an annotation processor following this blog, the code has no problem, but it just can not generate the file, then I found out is the Gradle version.
my Gradle setting :
root -> build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
}
gradle/wrapper/gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
So, when I downgrade the Gradle version to 4.6, everything is fine.
my changed Gradle setting:
root -> build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
}
gradle/wrapper/gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
I looked up the doc about Gradle 5.x, got nothing. Is there some changed behavior can cause this problem?
What should I do when I want to use Gradle 5.x?