Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to replace resourceConfigurations for languages for Kotlin DSL?

Android doc for Groovy (https://developer.android.com/guide/topics/resources/app-languages)

android {
  ...
  defaultConfig {
    resourceConfigurations += ["en", "en-rGB", "fr", "ja", "b+zh+Hans+MO", "b+zh+Hant+MO"]
  }
}

How to replace it after migration to Kotlin DSL (https://developer.android.com/build/migrate-to-kotlin-dsl)?

like image 626
Michalsx Avatar asked Oct 17 '25 23:10

Michalsx


1 Answers

With this:

android {
  ...
  defaultConfig {
    resourceConfigurations += listOf("en", "en-rGB", "fr", "ja", "b+zh+Hans+MO", "b+zh+Hant+MO")
 }
}
like image 134
Ayushi Khandelwal Avatar answered Oct 20 '25 13:10

Ayushi Khandelwal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!