Skip to content

Remove or rename android resource folders #10

@ernest0vm

Description

@ernest0vm

when i try to upload the android app bundle to google play console i get this error and i cannot upload it

Your App Bundle targets the following unrecognized languages: by, cz, dk, fl, fp, gr, jp. The list of supported language codes can be found in the [IANA registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry). Invalid languages caused by third-party libraries can be excluded using the [resConfigs](https://developer.android.com/studio/build/shrink-code#unused-alt-resources) Gradle property.

also i analyze the dependencies with gemini and get this:

The root cause is a combination of non-standard resource naming in a third-party library and how the Android App Bundle (AAB) analysis works:

1. The Source: Incorrect Library Resources

The dependency @premieroctet/react-native-wallet contains several folders in its Android resources (under res/) named with ISO country codes instead of ISO language codes:
• It has drawable-by (Belarus) instead of values-be (Belarusian).
• It has drawable-cz (Czech Republic) instead of values-cs (Czech).
• It has drawable-jp (Japan) instead of values-ja (Japanese).

2. The Conflict: Country Codes vs. Language Codes

Android's resource system (AAPT2) is strictly designed to use ISO 639-1 (two-letter language codes) for translations. 

When the library author used ISO 3166-1 (country codes) as primary qualifiers, it created "invalid" locales.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions