Welcome! › Forums › Unity Plugins › Precise Locale › Unsupported ISO 3166 country: en_UK
- This topic has 10 replies, 3 voices, and was last updated 6 years, 11 months ago by Piotr.
-
AuthorPosts
-
August 8, 2017 at 3:10 pm #307pixelParticipant
Hey,
Published app successfully with plugin on iOS and amazon but when trying a build for google store get following error preventing app from running:
08-08 15:39:17.657 12707 12721 I Unity : AndroidJavaException: java.lang.ExceptionInInitializerError
08-08 15:39:17.657 12707 12721 I Unity : java.lang.ExceptionInInitializerError
08-08 15:39:17.657 12707 12721 I Unity : at java.lang.Class.classForName(Native Method)
08-08 15:39:17.657 12707 12721 I Unity : at java.lang.Class.forName(Class.java:324)
08-08 15:39:17.657 12707 12721 I Unity : at java.lang.Class.forName(Class.java:285)
08-08 15:39:17.657 12707 12721 I Unity : at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
08-08 15:39:17.657 12707 12721 I Unity : at com.unity3d.player.UnityPlayer.a(Unknown Source)
08-08 15:39:17.657 12707 12721 I Unity : at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source)
08-08 15:39:17.657 12707 12721 I Unity : at android.os.Handler.dispatchMessage(Handler.java:107)
08-08 15:39:17.657 12707 12721 I Unity : at android.os.Looper.loop(Looper.java:207)
08-08 15:39:17.657 12707 12721 I Unity : at com.unity3d.player.UnityPlayer$c.run(Unknown Source)
08-08 15:39:17.657 12707 12721 I Unity : Caused by: java.lang.IllegalArgumentException: Unsupported ISO 3166 country: en_UK
08-08 15:39:17.657 12707 12721 I Unity : at java.util.Currency.getInstance(Currency.java:84)
08-08 15:39:17.657 12707 12721 I Unity : at com.kokosoft.preciselocale.PreciseLocale.<clinit>(PreciseLocale.java:16)
08-08 15:39:17.657 12707 12721 I Unity : … 9 moreI’m not sure why its only occurring now and wouldn’t cause issue on amazon builds since they are still android OS, or where the en_UK code is coming from, any help much appreciated.
August 9, 2017 at 10:35 am #309PiotrKeymasterHey,
Sorry for that. I think I’ve just sent you patch on your email,September 22, 2017 at 6:05 pm #381florin_pkParticipantHi,
We have the same problem.
Please send the patch also.
Eventually, update also the plugin.
Thanks.
Edit: this is the reason
Caused by: java.lang.IllegalArgumentException: Unsupported ISO 3166 country: de- This reply was modified 6 years, 12 months ago by florin_pk.
September 25, 2017 at 9:52 am #388PiotrKeymasterIt’s updated on asset store for a long time. Are you sure you are using the latest version?
September 25, 2017 at 12:14 pm #390florin_pkParticipantyes.
definitely. we are using the latest version.it looks like the problem may be with the currency.
we don’t even need it.do you have a suggestion for a workaround?
thanks.
September 25, 2017 at 6:00 pm #391PiotrKeymasterCan you post whole stacktrace?
September 25, 2017 at 6:58 pm #392florin_pkParticipant09-22 10:50:53.329: E/Unity(7661): AndroidJavaException: java.lang.ExceptionInInitializerError
09-22 10:50:53.329: E/Unity(7661): java.lang.ExceptionInInitializerError
09-22 10:50:53.329: E/Unity(7661): at java.lang.Class.classForName(Native Method)
09-22 10:50:53.329: E/Unity(7661): at java.lang.Class.forName(Class.java:308)
09-22 10:50:53.329: E/Unity(7661): at java.lang.Class.forName(Class.java:272)
09-22 10:50:53.329: E/Unity(7661): at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
09-22 10:50:53.329: E/Unity(7661): at com.unity3d.player.UnityPlayer.c(Unknown Source)
09-22 10:50:53.329: E/Unity(7661): at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source)
09-22 10:50:53.329: E/Unity(7661): at android.os.Handler.dispatchMessage(Handler.java:98)
09-22 10:50:53.329: E/Unity(7661): at android.os.Looper.loop(Looper.java:135)
09-22 10:50:53.329: E/Unity(7661): at com.unity3d.player.UnityPlayer$c.run(Unknown Source)
09-22 10:50:53.329: E/Unity(7661): Caused by: java.lang.IllegalArgumentException: Unsupported ISO 3166 country: de
09-22 10:50:53.329: E/Unity(7661): at java.util.Currency.getInstance(Currency.java:84)
09-22 10:50:53.329: E/Unity(7661): at com.kokosoft.preciselocale.PreciseLocale.<clinit>(PreciseLocale.java:16)
09-22 10:50:53.329: E/Unity(7661): … 9 moreSeptember 27, 2017 at 6:00 pm #397PiotrKeymasterIt seems you are using old jar file. Can you try to delete a plugin and re-import? Asset Store messes up things so often.
September 27, 2017 at 8:09 pm #398florin_pkParticipantWe checked this. And the jar we have is identical with the new import from the store.
Actually the last modification on the jar file is from August 10. Which sounds ok considering that the last release (1.1) on the asset store is from August 11.
It would be great if you can send us a modified jar that at least removes the currency feature. If a proper fix is not possible.
thanks.
October 1, 2017 at 1:46 pm #400florin_pkParticipantHi again,
We need to fix this issue because next week we plan an Open Beta test on Android.
For the momment we did this:
1. We isolated the calls to PreciseLocale.GetLanguage and PreciseLocale.GetRegion in a try/catch block in order to catch the exception. If any of these calls throws an exception,
2. We call PreciseLocale.GetLanguageID (which we should check on iOS because it might not return exactly what we need). If this call fails also,
3. We set to default EN_USIs this the best workaround?
Do you have a better solution?Can we hope for a proper fix by the end of next week?
Thank you.
October 1, 2017 at 7:25 pm #401PiotrKeymasterHey,
I’ve sent a jar file on your email. Can you check it out if you still see that crash? -
AuthorPosts
- You must be logged in to reply to this topic.