【发布时间】:2021-12-28 20:37:18
【问题描述】:
我想为我们的应用程序的付费版本更改 app_name 字符串和其他字符串的值,以更改我们应用程序的付费版本的应用程序名称和小部件名称。但这对我不起作用。请帮助我,我如何才能更正修改@string/app_name 的字符串资源值和我们应用程序付费版本的其他字符串。非常感谢大家的帮助。
flavorDimensions 'orthodoxCalendar'
productFlavors {
orthodoxcalendarfree {
dimension 'orthodoxCalendar'
applicationId "oleksandr.kotyuk.orthodoxcalendarfree"
versionCode defaultConfig.versionCode
versionName defaultConfig.versionName
}
orthodoxCalendarpaid {
dimension 'orthodoxCalendar'
applicationId "oleksandr.kotyuk.orthodoxcalendarpaid"
versionCode defaultConfig.versionCode
versionName defaultConfig.versionName
//we want write in app_name string value of app_name_paid string. All strings defined in strings.xml file in values folder. The same we do for other string
resValue "string", "app_name", "@string/app_name_paid"
resValue "string", "app_name_fz", "@string/app_name_paid_fz"
}
}
}
【问题讨论】:
标签: java android gradle resources android-productflavors