84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
BuildConfig类在/build/generated/source/buildConfig目录下,请问,为什么在/src/java/<package> /下的Java类可以直接调用呢?
/build/generated/source/buildConfig
/src/java/<package> /
是不是编译时通过一些方法忽略了BuildConfig的物理路径?
走同样的路,发现不同的人生
gradle has sourceSetsomething to say. The generated code under build and the handwritten code under main/test are all within the SourceSet at compile time.
sourceSet
In fact, this BuildConfig class is similar to the R class, and there is also apt or similar ASM.
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.In fact, this BuildConfig class is similar to the R class, and there is also apt or similar ASM.