DEPLOY ERROR

Giorgio Sfiligoi 571 Reputation points
2025-07-16T14:06:05.63+00:00

After the upgrade of VS to version 17.14.9 today, all my MAUI projects, that used to run before, generate a Deploy Error:

Error ADB0010: Mono.AndroidTools.InstallFailedException: Unexpected install output:

Exception occurred while executing 'install':

android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space

at android.util.ExceptionUtils.wrap(ExceptionUtils.java:34)

at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:566)

at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:3143)

at com.android.server.pm.PackageManagerShellCommand.doRunInstall(PackageManagerShellCommand.java:1341)

at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1303)

at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:193)

at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)

at android.os.ShellCommand.exec(ShellCommand.java:38)

at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:24779)

at android.os.Binder.shellCommand(Binder.java:950)

at android.os.Binder.onTransact(Binder.java:834)

at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4818)

at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:8839)

at android.os.Binder.execTransactInternal(Binder.java:1184)

at android.os.Binder.execTransact(Binder.java:1143)

Caused by: java.io.IOException: Requested internal only, but not enough space

at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:236)

at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:147)

at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:162)

at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:783)

at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:563)

... 13 more

at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in /Users/runner/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Mono.AndroidTools/Internal/AdbOutputParsing.cs:line 327

at System.Threading.Tasks.Task.Execute()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at AndroidDeviceExtensions.<PushAndInstallPackageAsync>d__13.MoveNext() in /Users/runner/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Devices/AndroidDeviceExtensions.cs:line 225

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at AndroidDeviceExtensions.<PushAndInstallPackageAsync>d__13.MoveNext() in /Users/runner/work/1/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/Xamarin.AndroidTools/Devices/AndroidDeviceExtensions.cs:line 242

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Xamarin.Android.Tasks.FastDeploy.<InstallPackage>d__118.MoveNext() in /Users/runner/work/1/s/xamarin-android/external/monodroid/tools/msbuild/Tasks/FastDeploy.cs:line 382

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at Xamarin.Android.Tasks.FastDeploy.<InstallPackage>d__118.MoveNext() in /Users/runner/work/1/s/xamarin-android/external/monodroid/tools/msbuild/Tasks/FastDeploy.cs:line 400

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Xamarin.Android.Tasks.FastDeploy.<RunInstall>d__112.MoveNext() in /Users/runner/work/1/s/xamarin-android/external/monodroid/tools/msbuild/Tasks/FastDeploy.cs:line 249 0

This happens with Net 8 and 9, and with Android Emulators API 29, 32, 34.

I need an urgent fix please.

Developer technologies | Visual Studio | Debugging
{count} votes

2 answers

Sort by: Most helpful
  1. Giorgio Sfiligoi 571 Reputation points
    2025-07-17T08:58:39.2366667+00:00

    Removed all the Android Emulators.

    Uninstalled the Android SDK, then re-installed.

    Applied an SDK update.

    Now my MAUI projects run.

    Comments: it's not the first time that I have problems with Android SDK, and they are not clear to decipher; it's unfortunate that apparently this portion of the software is not robust.

    0 comments No comments

  2. Surya Amrutha Vaishnavi Lanka (INFOSYS LIMITED) 1,115 Reputation points Microsoft External Staff
    2025-11-12T15:05:01.68+00:00

    Thanks for reaching out! The Android emulator (or connected device) ran out of internal storage space while Visual Studio was trying to deploy your MAUI app. It’s not related to Visual Studio directly,it’s caused by a corrupted or full Android SDK / emulator image after the VS upgrade.

    Here are some steps you can follow:

    1.Free up or reset emulator space

    Open Android Device Manager in Visual Studio and stop all running emulators. Delete all existing Android virtual devices (AVDs). Create a new emulator with Android API 33 or 34x86_64 or arm64-v8a architecture at least 8GB internal storage.

    2.Clean up SDK components

    Run these commands (or do via GUI) and Remove old SDK cache

    %USERPROFILE%.android\avd

    %LOCALAPPDATA%\Xamarin

    %LOCALAPPDATA%\Android

    Then in Visual Studio Installer go to Individual Components and reinstall or update the Android SDK Tools and Android SDK Platform 33 or 34 and Android Emulator

    3.Disable Fast Deploy (temporary workaround)

    Sometimes Fast Deploy triggers this issue. In Visual Studio go to Project Properties and Android Options.

    4.Check for obsolete JDK or warning cleanup and If you see warnings like:

     source value 8 is obsolete

    target value 8 is obsolete

    That means you’re targeting an old Java version. Then go to Tools to Options and Xamarin followed by Android Settings.Make sure Java SDK (JDK 17) or later is selected.

     


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.