BuildConfig类在/build/generated/source/buildConfig
目录下,请问,为什么在/src/java/<package> /
下的Java类可以直接调用呢?
是不是编译时通过一些方法忽略了BuildConfig的物理路径?
PHP中文网2017-04-18 09:19:03
gradle has sourceSet
something to say. The generated code under build and the handwritten code under main/test are all within the SourceSet at compile time.
PHPz2017-04-18 09:19:03
In fact, this BuildConfig class is similar to the R class, and there is also apt or similar ASM.