コガネブログ

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

【Unity】DeploymentOperationFailedException: Installation failed. See the Console for details.

概要

Play Asset Delivery 用の Unity プラグインを追加して
Bundletool.BuildBundle で Android ビルドを実行したら

DeploymentOperationFailedException: Installation failed. See the Console for details.
UnityEditor.Android.AndroidDeploymentTargetsExtension.UploadAndroidAppBundle (UnityEditor.Android.AndroidBuildProperties buildProperties, UnityEditor.DeploymentTargets.IDeploymentTargetsMainThreadContext context, UnityEditor.Android.AndroidDevice device, UnityEditor.Android.AndroidDeploymentTargetsExtension+LaunchProgressTaskManager taskManager) (at <609ac2fedadc4dc2918b42b474cb9a97>:0)
UnityEditor.Android.AndroidDeploymentTargetsExtension+<>c__DisplayClass13_1.<LaunchBuildOnTarget>b__1 () (at <609ac2fedadc4dc2918b42b474cb9a97>:0)
UnityEditor.ProgressTaskManager.Run () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Utils/ProgressBarUtils.cs:71)
UnityEditor.Android.AndroidDeploymentTargetsExtension.LaunchBuildOnTarget (UnityEditor.DeploymentTargets.IDeploymentTargetsMainThreadContext context, UnityEditor.BuildProperties buildProperties, UnityEditor.DeploymentTargets.DeploymentTargetId targetId, UnityEditor.ProgressHandler progressHandler) (at <609ac2fedadc4dc2918b42b474cb9a97>:0)
UnityEditor.DeploymentTargets.DeploymentTargetManager.LaunchBuildOnTarget (UnityEditor.BuildProperties buildProperties, UnityEditor.DeploymentTargets.DeploymentTargetId targetId, UnityEditor.ProgressHandler progressHandler) (at /Users/bokken/buildslave/unity/build/Editor/Mono/DeploymentTargets/DeploymentTargetManager.cs:45)
UnityEditor.PostprocessBuildPlayer+<>c__DisplayClass22_1.<LaunchOnTargets>b__1 () (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:283)
UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions)
Google.Android.AppBundle.Editor.Internal.BuildTools.AndroidBuilder:Build(BuildPlayerOptions) (at Library/PackageCache/com.google.android.appbundle@1f7a503ea342/Editor/Scripts/Internal/BuildTools/AndroidBuilder.cs:178)
Google.Android.AppBundle.Editor.Internal.BuildTools.AppBundleBuilder:BuildAndroidPlayer(BuildPlayerOptions) (at Library/PackageCache/com.google.android.appbundle@1f7a503ea342/Editor/Scripts/Internal/BuildTools/AppBundleBuilder.cs:179)
Google.Android.AppBundle.Editor.Internal.AppBundlePublisher:Build(AppBundleBuilder, AppBundleBuildSettings) (at Library/PackageCache/com.google.android.appbundle@1f7a503ea342/Editor/Scripts/Internal/AppBundlePublisher.cs:175)
Google.Android.AppBundle.Editor.Internal.AppBundlePublisher:Build(BuildPlayerOptions, AssetPackConfig, Boolean) (at Library/PackageCache/com.google.android.appbundle@1f7a503ea342/Editor/Scripts/Internal/AppBundlePublisher.cs:111)
Google.Android.AppBundle.Editor.Bundletool:BuildBundle(BuildPlayerOptions, AssetPackConfig, Boolean) (at Library/PackageCache/com.google.android.appbundle@1f7a503ea342/Editor/Scripts/Bundletool.cs:80)

上記のエラーが発生してビルドに失敗する現象に遭遇した

Android 端末にインストール済みの開発アプリをアンインストールしたら
エラーが発生しなくなった