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

google play console rejected due to java error #1736

Open
shaikhkhamroddin opened this issue Mar 9, 2024 · 7 comments
Open

google play console rejected due to java error #1736

shaikhkhamroddin opened this issue Mar 9, 2024 · 7 comments

Comments

@shaikhkhamroddin
Copy link

dev, staging and internal testing working properly, but getting rejected from google play console due to below error :

Exception java.lang.RuntimeException: java.lang.IllegalStateException: Source and target locales are the same
at android.app.job.JobServiceEngine$JobHandler.handleMessage (JobServiceEngine.java:118)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:201)
at android.os.Looper.loop (Looper.java:288)
at android.app.ActivityThread.main (ActivityThread.java:7918)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:936)
Caused by java.lang.IllegalStateException: Source and target locales are the same
at mnb.bw
at exp.a (PG:9)
at exq.b
at com.google.android.apps.miphone.aiai.translate.settings.jobservice.AutoTranslateSettingJobService.onStopJob (PG:5)
at android.app.job.JobService$1.onStopJob (JobService.java:73)
at android.app.job.JobServiceEngine$JobHandler.handleMessage (JobServiceEngine.java:114)

Model - Pixel 7 Android 13 (SDK 33)
Release version - 13
SDK version - 33
ABI - arm64-v8a
OpenGL ES - 3.2

Here are some app build settings:
Min API Level - Android 10
Target API Level - Android 13 (API 33)
Arm

@adrai
Copy link
Member

adrai commented Mar 9, 2024

Sorry, I have no idea what you mean...
react-i18next is a JavaScript project, not a Java...
I don't think this is related to react-i18next at all...
Just make sure you add an intl polyfill if necessary: https://www.i18next.com/translation-function/plurals

@shaikhkhamroddin
Copy link
Author

yes @adrai I know it's javascript project, but once we create build, code gets converted to java files. Everything is working fine upto internal testing but in when app sent for review in GPC then it gets rejected due to above issue. Not getting any error and all in dev mode.

@adrai
Copy link
Member

adrai commented Mar 9, 2024

And why do you think that error is related to react-i18next?

@shaikhkhamroddin
Copy link
Author

as the error is related to locales.

@adrai
Copy link
Member

adrai commented Mar 10, 2024

Sorry, but I don't think this is at all related to react-i18next...
I'm not able to help, sorry.

@jamuhl
Copy link
Member

jamuhl commented Mar 10, 2024

99.99% not looking like related to react-i18next -> the error message seems more related to some call to some translation service needing source and target locale...

https://forum.unity.com/threads/google-play-console-error-java.1510811/

even states more details:

  at mnb.bw
  at exp.a (PG:9)
  at exq.b
  at com.google.android.apps.miphone.aiai.translate.settings.jobservice.AutoTranslateSettingJobService.onStopJob (PG:5)
  at android.app.job.JobService$1.onStopJob (JobService.java:73)
  at android.app.job.JobServiceEngine$JobHandler.handleMessage (JobServiceEngine.java:114)

So it's reasonable to search what causes the error on AutoTranslateSettingJobService

@CuiGuoYin
Copy link

I suggest repackaging and trying it out again

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

4 participants