标签:
productFlavors {
office {
applicationId "com.example.app"
buildConfigField ‘String‘, ‘API_URL‘, ‘"http://www.baidu.com"‘
resValue "string", "app_name", "app_office"
}
other {
applicationId "com.example.app.other"
buildConfigField ‘String‘, ‘API_URL‘, ‘"http://www.google.com"‘//BuildConfig.API_URL方式引用
resValue "string", "app_name", "app_other"//在Android Manifest文件中以@string/app_name方式引用,即可动态配置应用名称
}
}
标签:
原文地址:http://www.cnblogs.com/linux007/p/5794904.html