Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Bug Localization Addressable build cannot run on Android device

Discussion in 'Addressables' started by nexasoft, Nov 22, 2023.

  1. nexasoft

    nexasoft

    Joined:
    Jan 8, 2019
    Posts:
    6
    Hi, I was trying to use the localization package for my project on Android/iOS platform. Currently I'm testing on Android device. I have build the addressable, even clean build them but when I run the APK and using Android Studio to profile the apk, the apk throws these errors:

    2023-11-22 11:46:37.156 6153-6180/? E/Unity: OperationException : Addressables - Unable to load runtime data at location UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle`1[[UnityEngine.AddressableAssets.Initialization.ResourceManagerRuntimeData, Unity.Addressables, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]].


    2023-11-22 11:46:37.185 6153-6180/? E/Unity: UnityEngine.AddressableAssets.InvalidKeyException: Exception of type 'UnityEngine.AddressableAssets.InvalidKeyException' was thrown. No Location found for Key=Locale


    2023-11-22 11:46:37.208 6153-6180/? E/Unity: OperationException : ChainOperation failed because dependent operation failed


    2023-11-22 11:46:37.245 6153-6180/? E/Unity: No Locale could be selected:
    The following (3) IStartupLocaleSelectors were used:
    UnityEngine.Localization.Settings.CommandLineLocaleSelector
    UnityEngine.Localization.Settings.SystemLocaleSelector
    UnityEngine.Localization.Settings.SpecificLocaleSelector


    2023-11-22 11:46:37.284 6153-6180/? E/Unity: OperationException : SelectedLocale is null. Could not load table.

    It is working as it should when I play in Editor, but not in apk build. I even change the Play Mode Script to use Existing Build

    I am using
    Unity 2021.3.5f1
    Localization 1.3.2
    Addressables 1.19.19
     
  2. nexasoft

    nexasoft

    Joined:
    Jan 8, 2019
    Posts:
    6