I am trying to annotate a class in java with a version supplied from a build.gradle but I got the error that the value has to be constant, so now I am trying the other way around. If I set a static final string in a java class, can I access it from the build.gradle to use as my version attribute?
有关生成 java 文件并将其添加到要编译的源的示例,请参见此处。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.