コガネブログ

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

【Unity】adb: failed to install YYYY.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package ZZZZ signatures do not match previously installed version; ignoring!]

概要

CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
/Applications/Unity/Hub/Editor/2022.1.23f1/PlaybackEngines/AndroidPlayer/SDK/platform-tools/adb -s "XXXX" install -r -d "YYYY.apk"

stderr[
adb: failed to install YYYY.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package ZZZZ signatures do not match previously installed version; ignoring!]
]
stdout[
Performing Streamed Install
]
exit code: 1

Unity で Buiild And Run でビルドした .apk を Android 端末にインストールしようとしたら
上記のエラーが発生してインストールに失敗する現象に遭遇した

すでに Android 端末にインストールされているパッケージ名が同じアプリを
アンインストールしたらインストールできるようになった