Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your App Bundle targets the following unrecognized languages: gr. #5

Closed
nabin304 opened this issue May 3, 2020 · 2 comments
Closed

Comments

@nabin304
Copy link

nabin304 commented May 3, 2020

When I try to publish an app on Google Play store, which reference this library (Xamarin.RateThisApp v1.2.0) does not work.

Details error message:
Your App Bundle targets the following unrecognized languages: gr. The list of supported language codes can be found in the IANA registry.
Invalid languages caused by third-party libraries can be excluded using the resConfigs Gradle property.

@trinnguyen
Copy link
Owner

trinnguyen commented May 4, 2020

Add this MSBuild property to your Xamarin.Android .csproj would solve the issue, assume that your project use a single "en" resource set.

<AndroidAapt2LinkExtraArgs>-c en</AndroidAapt2LinkExtraArgs>

You can add more configurations after "-c" arguments. They will be passed to aapt2 cmd as extra arguments. In case of using aapt, use this property instead: AndroidResgenExtraArgs

The reason behind this is that the native RateThisApp library has translation strings for many configurations including "gr". They are all packed together into the AppBundle package. This extras arguments make sure only some configurations are added, hence prevents the rejection error.

@nabin304
Copy link
Author

nabin304 commented May 4, 2020

Thanks a lot, it worked.

@nabin304 nabin304 closed this as completed May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants