コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Failed to retrieve asset pack: Asset Pack Download Error(-1):

概要

Failed to retrieve asset pack: Asset Pack Download Error(-1):
The requesting app is unavailable
(e.g. unpublished, nonexistent version code). 
(https://developer.android.com/reference/com/google/android/play/core/assetpacks/model/AssetPackErrorCode.html#APP_UNAVAILABLE) 
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)
  • Unity メニューの「Google > Build Android App Bundle...」でビルドした .aab を
    Android 端末にインストールしようとしたら上記のエラーが発生した
  • Play Asset Delivery を使用する .aab を Android 端末にインストールして
    動作確認したい場合は、Unity メニューの「Build and Run」でインストールするか
    bundletool で --local-testing を使用して .aab から .apks を作成してインストールする