Strange "DeploymentOperationFailedException" Error

I am getting the following error when attempting to build a project:

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 <baa85b046c844c2db706850a8462d4ac>:0)
UnityEditor.Android.AndroidDeploymentTargetsExtension+<>c__DisplayClass15_1.<LaunchBuildOnTarget>b__1 () (at <baa85b046c844c2db706850a8462d4ac>:0)
UnityEditor.ProgressTaskManager.Run () (at <4e9c48eedf6f482fa439ccf335631481>:0)
UnityEditor.Android.AndroidDeploymentTargetsExtension.LaunchBuildOnTarget (UnityEditor.DeploymentTargets.IDeploymentTargetsMainThreadContext context, UnityEditor.BuildProperties buildProperties, UnityEditor.DeploymentTargets.DeploymentTargetId targetId, UnityEditor.ProgressHandler progressHandler) (at <baa85b046c844c2db706850a8462d4ac>:0)
UnityEditor.DeploymentTargets.DeploymentTargetManager.LaunchBuildOnTarget (UnityEditor.BuildProperties buildProperties, UnityEditor.DeploymentTargets.DeploymentTargetId targetId, UnityEditor.ProgressHandler progressHandler) (at <4e9c48eedf6f482fa439ccf335631481>:0)
UnityEditor.PostprocessBuildPlayer+<>c__DisplayClass18_1.<LaunchOnTargets>b__1 () (at <4e9c48eedf6f482fa439ccf335631481>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

I really don’t have any Idea what this is saying and I can’t find anything online discussing this error. Any help is appreciated.

Edit: I have put the Editor.log file into google drive at this link:

Please attach Editor.log

It will not allow me to attach the Editor.log file, as I am a new user

Maybe upload to google drive, and paste a link instead ?

I have uploaded the Editor.log file at the link now provided in the post. Thank you.

It says:

[BT:1.16.0] Error: File 'C:\Users\chris\My project\Build\Android\0-0' is a directory.
java.lang.IllegalArgumentException: File 'C:\Users\chris\My project\Build\Android\0-0' is a directory.
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:218)
	at com.android.tools.build.bundletool.model.utils.files.FilePreconditions.checkFileExistsAndReadable(FilePreconditions.java:37)
	at com.android.tools.build.bundletool.commands.BuildApksCommand.validateInput(BuildApksCommand.java:958)
	at com.android.tools.build.bundletool.commands.BuildApksCommand.execute(BuildApksCommand.java:904)
	at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:83)
	at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:55)

I assume Android tool was expecting a file, not a directory. Does your build produce an .aab file?

I just got it to produce a .aab file after unchecking the “Export Project” box in platform settings. My problem seems to be solved. Before, I had “Export Project” and “Build App Bundle (Google Play)” checked and clicked the “Build and Run” button, and it prompted me to select a folder, with no option to name the output file. Now it works fine as long as I leave the “Export Project” box unchecked.

Thank you for your help. :slight_smile:

1 Like