Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Play Asset Delivery with Addressables

Discussion in 'Android' started by Shankar-Ganesh, Feb 11, 2022.

  1. Shankar-Ganesh

    Shankar-Ganesh

    Joined:
    Sep 23, 2013
    Posts:
    32
    Hi,

    We are trying to migrate to Android App Bundle upload in Google Play Store. In order to reduce the download file size we have planned to download assets using On-demand asset packs. We are using Unity's Play Asset Delivery API and we can download all types of asset packs(Install time, Fast follow and On-demand).

    We can able to download On-demand asset packs(Custom asset packs) and can't able to load it into memory using addressables.

    1) AndroidAssetPacks.DownloadAssetPackAsync(new string[] { assetPackName }, CheckDownloadStatus); - Download was successfull

    2) AndroidAssetPacks.GetAssetPackPath(assetPackName); //AssePacktPath also printed successfully

    3) Addressables.LoadAssetAsync<AudioClip>(assetAddress); //Here the error came

    Error
    Failed to read data for the AssetBundle 'customassetpackname_assets_all_8ff22ce6ad7c39794637a552c0a9ffc3.bundle'.

    Error
    RemoteProviderException : Invalid path in AssetBundleProvider: 'jar:file:///data/app/com.companyname.app-1/split_UnityDataAssetPack.apk!/assets/aa/Android/customassetpackname_assets_all_8ff22ce6ad7c39794637a552c0a9ffc3.bundle'.

    UnityEngine.AsyncOperation:InvokeCompletionEvent()

    Error
    OperationException : GroupOperation failed because one of its dependencies failed
    RemoteProviderException : Invalid path in AssetBundleProvider: 'jar:file:///data/app/com.companyname.app-1/split_UnityDataAssetPack.apk!/assets/aa/Android/customassetpackname_all_8ff22ce6ad7c39794637a552c0a9ffc3.bundle'.
     

    Attached Files:

    iivanovazur and crekri like this.
  2. denisb

    denisb

    Joined:
    Oct 10, 2014
    Posts:
    3
    Did you figure out your issue? I have the same problem
     
  3. Shankar-Ganesh

    Shankar-Ganesh

    Joined:
    Sep 23, 2013
    Posts:
    32
    Not yet...
     
  4. iivanovazur

    iivanovazur

    Joined:
    Jan 11, 2022
    Posts:
    3
    we try use unity solution with some tweaks and it works but with some exceptions like in post.
    is any body get its works wheel?