我有两种产品风格,并在build.gradle
中设置了testApplicationId
,如下所示:
defaultConfig {
minSdkVersion 8
targetSdkVersion 19
testApplicationId 'com.example.testapp'
}
在每个productFlavor
中覆盖testApplicationId
是否可行?
我尝试在各自的productFlavors
中覆盖testApplicationId
本身,但是R.class
文件不会生成,并且我会得到编译错误。
我了解到packageName
/applicationId
不会影响R.class
文件,但我不确定这条规则是否适用于testApplicationId
。