我想在运行时获取构建变体,这是否可能无需任何额外的配置或代码?
I'd like to get the build variant during runtime, is this possible without any extra config or code?
查看生成的BuildConfig
类.
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.example.app";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "";
}
这篇关于如何在 Android Studio 运行时获取构建变体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!