Unsupported ISO 3166 country: es_419

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #227
    ziemoracho
    Participant

    Hello there!

    I’m very glad I found this tool as it helps a million 🙂 However I’m getting recently an error from Spain I guess? Could you take a look at this and provide some update? Would be great!. Here’s the stack trace:

    AndroidJavaException: java.lang.ExceptionInInitializerError java.lang.ExceptionInInitializerError java.lang.Class.classForName(Native Method) java.lang.Class.forName(Class.java:306) java.lang.Class.forName(Class.java:270) com.unity3d.player.UnityPlayer.nativeRender(Native Method) com.unity3d.player.UnityPlayer.a(Unknown Source) com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source) android.os.Handler.dispatchMessage(Handler.java:98) android.os.Looper.loop(Looper.java:135) com.unity3d.player.UnityPlayer$c.run(Unknown Source) Caused by: java.lang.IllegalArgumentException: Unsupported ISO 3166 country: es_419 java.util.Currency.getInstance(Currency.java:84) com.kokosoft.preciselocale.PreciseLocale.<clinit>(PreciseLocale.java:16) … 9 more UnityEngine.AndroidJNISafe.CheckException () UnityEngine.AndroidJNISafe.CallStaticObjectMethod (IntPtr clazz, IntPtr methodID, UnityEngine.jvalue[] args) UnityEngine.AndroidJavaObject._CallStatic[ReturnType] (System.String methodName, System.Object[] args) UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) PreciseLocale+PreciseLocaleAndroid..cctor () PreciseLocale.GetLanguageID () BI.Localization.LocalizationService.GetLocalizationData () BI.Localization.LocalizationService.Awake () Rethrow as TypeInitializationException: The type initializer for ‘PreciseLocale.PreciseLocaleAndroid’ threw an exception. PreciseLocale.GetLanguageID () BI.Localization.LocalizationService.GetLocalizationData () BI.Localization.LocalizationService.Awake ()

    Don’t hesistate to contact me via email.

    Cheers,
    Ziemowit

    #228
    PiotrPiotr
    Keymaster

    Hey,
    It’s really weird and unexpected. For some reason OS cannot read currency symbol for device’s language.
    I don’t really have idea of fixing it except safety-check against crash and returning empty string in such case (for currency symbols).

    Can you check jar file I’ve sent on your email (remember to change extension from ._jar to .jar and put it in Plugins/Android directory)?

    #229
    ziemoracho
    Participant

    Hi,

    Thanks for reply. Will do it with next update on the stores, as soon as users update the app I will check whether the problem still exists.

    Thanks,
    Ziemowit

    #231
    PiotrPiotr
    Keymaster

    Please test it first before sending to users 🙂

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