Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Can not update bundle on mobile

Discussion in 'Addressables' started by jiahongzeng, Nov 4, 2019.

  1. jiahongzeng

    jiahongzeng

    Joined:
    Jul 24, 2019
    Posts:
    16
    Hi

    Here is my addressable setting
    upload_2019-11-4_14-35-44.png

    The addressable does not update the catalog from remote.
    It always loading and using catalog from jar:file://data/app/com.test.addressable/base.apk

    Is someone also have the same problem and solve it?
    Please help me how to fix the problem?

    Thanks.
     
    Last edited: Nov 5, 2019
  2. DavidUnity3d

    DavidUnity3d

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    81
    Hey @jiahongzeng what Build and Load path does your Addressable Group use? The Settings object will show what it is set to but the Group itself drives where the content is built and how it is loaded.
     
  3. jiahongzeng

    jiahongzeng

    Joined:
    Jul 24, 2019
    Posts:
    16
    Hi @DavidUnity3d

    Thanks for the reply.

    Here is my group setting

    upload_2019-11-5_12-10-8.png

    Is there any wrong setting about it?
     
  4. DavidUnity3d

    DavidUnity3d

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    81
    I'm curious about your Load Path. Is it just that Addressables won't download it? If you use UnityWebRequest and point it to that same location does it download the file?

    Also are you using the Hosting Service that Addressables provides?
     
  5. jiahongzeng

    jiahongzeng

    Joined:
    Jul 24, 2019
    Posts:
    16
    Hi.

    1 . The load path is my ftp server.I am sure It will load file from the path.
    2 . I am not use the Hosting Service.

    I have tried to modify the settings.json in Library\com.unity.addressables\StreamingAssetsCopy\aa\Android
    I change
    Code (CSharp):
    1. "m_Keys":["AddressablesMainContentCatalog"],"m_InternalId":"{UnityEngine.AddressableAssets.Addressables.RuntimePath}/catalog.json"
    into
    Code (CSharp):
    1. "m_Keys":["AddressablesMainContentCatalog"],"m_InternalId":"http://(the ip of my ftp)/Android/catalog.json"
    After that I rebuild the apk and install,the app will get the catalog from my ftp.
    When I upload the update bundle file and reopen app,it can get the new bundle file.

    This is what I found.

    Thanks.
     
  6. jiahongzeng

    jiahongzeng

    Joined:
    Jul 24, 2019
    Posts:
    16
    Hi @DavidUnity3d,

    Is there any news about this problem?

    Thanks.
     
  7. DavidUnity3d

    DavidUnity3d

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    81
    Not yet unfortunately. The behavior your describing is very odd to me. The fact it works after a bundle update puzzles me a bit. Will you file a bug with Unity and post the case number here? It'll help me keep track of this.
     
  8. jiahongzeng

    jiahongzeng

    Joined:
    Jul 24, 2019
    Posts:
    16
    Last edited: Nov 13, 2019 at 3:15 AM