コガネブログ

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

【Firebase App Distribution】Failed to upload release. There's been an error processing your distribution. Ensure you are uploading a valid IPA or APK and try again.

概要

Failed to upload release. 
There's been an error processing your distribution. 
Ensure you are uploading a valid IPA or APK and try again.
Additional information about this error:
APK cannot be analyzed using aapt dump badging.

Firebase CLI で Firebase App Distribution に .apk をアップロードしようとしたら
上記のエラーが発生する現象に遭遇した。

.aab ではなく .apk でビルドするように変更した時に設定漏れがあって
拡張子は .apk だけど中身は .aab になってしまっており、
「.apk が破損している」ということで上記のエラーが発生していた。