现在Android Studio使用Gradle构建系统:有可能有不同的源文件或编译器开关来进行调试和发布构建吗?据我所知,在普通的Java中,编译器开关不可能像这样 // do something when in debug build // do something when not in debug build在C#中。
Gradle或Android Studio本身是否为我提供了编译依赖于构建类
例如,以英尺和英寸为例:我怎么能把其中的一个元素分解成这样的东西:
"the person is 5 feet 11 inches tall."feet {} inches tall.".format(list[1], list[1]) #I am aware taking the same index of list will give me 5-