Unsupported ISO 3166 country: en_UK

Welcome! Forums Unity Plugins Precise Locale Unsupported ISO 3166 country: en_UK

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #307
    pixel
    Participant

    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 more

    I’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.

    #309
    PiotrPiotr
    Keymaster

    Hey,
    Sorry for that. I think I’ve just sent you patch on your email,

    #381
    florin_pk
    Participant

    Hi,

    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 4 years ago by florin_pk.
    #388
    PiotrPiotr
    Keymaster

    It’s updated on asset store for a long time. Are you sure you are using the latest version?

    #390
    florin_pk
    Participant

    yes.
    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.

    #391
    PiotrPiotr
    Keymaster

    Can you post whole stacktrace?

    #392
    florin_pk
    Participant

    09-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 more

    #397
    PiotrPiotr
    Keymaster

    It seems you are using old jar file. Can you try to delete a plugin and re-import? Asset Store messes up things so often.

    #398
    florin_pk
    Participant

    We 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.

    #400
    florin_pk
    Participant

    Hi 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_US

    Is 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.

    #401
    PiotrPiotr
    Keymaster

    Hey,
    I’ve sent a jar file on your email. Can you check it out if you still see that crash?

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.