简体   繁体   中英

Getting error while uploading android app bundle to playstore.. Your app bundle targets unrecognized language jp

I have created signed android app bundle and while uploading it on playstore. I am getting the following error:

Your app bundle targets the following unrecognized languages: jp. 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. You need to use a different package name beacuse "com.example" is restricted.

I have used resConfigs gradle propoerty in defaultConfig too. I have also changed the package name.

But still getting this error.

I have used ads and firebase dependencies in the project and some third party libraries too.

错误来了

代码说明

If you are not supporting Japanese language, than you should not mention in resConfigs. You should only include languages name inside resConfigs which are supported by your app only.

If you are supprting Japanese langauge than code for japanese language is ja or ja_JP (not ja_rJP).

For supporting list of multiple languages, you can check this link.

Edit:

You said you only used "en", than in gradle why you are using resConfigs "en", "zh-rTW", "zh-rCN", "ja_rJP.

Remove this line and just add resConfigs "en" .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM