Debug Deployment Failure Reason Obscure
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 58/100
Línea de trabajo
Start by tracing how .NET for Android turns Android package installation output into the ADB0010 error shown in the error list; the issue names Mono.AndroidTools.InstallFailedException and Xamarin.Android.Tasks.FastDeploy. Check how install failures are parsed and surfaced, then make the insufficient-space reason clear in the error list. Done when this failure points developers to the emulator’s lack of internal storage.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Android framework version
net11.0-android (Preview)
Affected platform version
.NET 11 RC1
Description
This is a resubmission of MAUI Issue 38895 in a different area.
When debugging my application (uses .NET 10, built with .NET 11 RC1 SDK) it fails to deploy to the Android emulator I'm using with "ADB0010: Mono.AndroidTools.InstallFailedException: Unexpected install output: ...". The workaround is to uninstall the app from the emulator first, then the new one deploys correctly. The build output is below but the important part is buried in the middle of it:
pii.deploy.error: Mono.AndroidTools.InstallFailedException: Unexpected install output:
Exception occurred while executing 'install':
android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space
Bottom line - the emulator (in this case) has run out of space - it would be helpful if the error message in the error list page could make that clearer. It's easy enough to fix (on an emulator anyway), the trick is figuring out what the problem is. If you know enough to hover over the error message there's a popup with the stack dump, which helps because the error is near the top, but again, that's not obvious. For me this is low priority because once you know what the problem is you can make it go away.
1>------ Deploy started: Project: DivisiBill, Configuration: Debug Any CPU ------
1>Starting deployment to pixel_7_-_api_36_0 ...
1>Deploying to pixel_7_-_api_36_0 ...
Project "DivisiBill.csproj" (Install target(s)):
Build started.
You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy
There is no application host available for the specified RuntimeIdentifier 'android-arm64'.
There is no application host available for the specified RuntimeIdentifier 'android-x64'.
Found Java SDK version 21.0.8.
MonoAndroid Tools: C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\36.1.69\tools\
Android Platform API level: 36
TargetFrameworkVersion: v10.0
Android NDK:
Android SDK: C:\Program Files (x86)\Android\android-sdk\
Android SDK Build Tools: C:\Program Files (x86)\Android\android-sdk\build-tools\36.0.0\
Java SDK: C:\Program Files\Android\openjdk\jdk-21.0.8\
Application Java class: android.app.Application
_OuterIntermediateOutputPath:
IntermediateOutputPath: obj\Debug\net10.0-android\
Skipping target "ProcessMauiSplashScreens" because all output files are up-to-date with respect to the input files.
Skipping target "ProcessMauiFonts" because all output files are up-to-date with respect to the input files.
Skipping target "ResizetizeImages" because all output files are up-to-date with respect to the input files.
Skipping target "_ResolveLibraryProjectImports" because all output files are up-to-date with respect to the input files.
Skipping target "_BuildLibraryImportsCache" because all output files are up-to-date with respect to the input files.
Skipping target "_GenerateResourceCaseMap" because all output files are up-to-date with respect to the input files.
Skipping target "_GenerateResourceDesignerIntermediateClass" because all output files are up-to-date with respect to the input files.
Skipping target "_GenerateLayoutBindings" because it has no outputs.
Skipping target "_ConvertResourcesCases" because all output files are up-to-date with respect to the input files.
Skipping target "_CompileResources" because all output files are up-to-date with respect to the input files.
Skipping target "_PrepareUpdateAndroidResgen" because all output files are up-to-date with respect to the input files.
Skipping target "_UpdateAndroidResgen" because all output files are up-to-date with respect to the input files.
Project "DivisiBill.csproj" (_ComputeFilesToPublishForRuntimeIdentifiers target(s)):
_OuterIntermediateOutputPath: obj\Debug\net10.0-android\
IntermediateOutputPath: obj\Debug\net10.0-android\android-x64\
Done building project "DivisiBill.csproj".
Skipping target "_LinkAssembliesNoShrink" because all output files are up-to-date with respect to the input files.
Skipping target "_GenerateJavaStubs" because all output files are up-to-date with respect to the input files.
Skipping target "_ManifestMerger" because all output files are up-to-date with respect to the input files.
Skipping target "_ConvertCustomView" because all output files are up-to-date with respect to the input files.
Skipping target "_AddStaticResources" because all output files are up-to-date with respect to the input files.
Skipping target "_GenerateEmptyAndroidRemapNativeCode" because all output files are up-to-date with respect to the input files.
Skipping target "_GeneratePackageManagerJava" because all output files are up-to-date with respect to the input files.
Skipping target "_GenerateAndroidAssetsDir" because all output files are up-to-date with respect to the input files.
Skipping target "_PrepareCreateBaseApk" because all output files are up-to-date with respect to the input files.
Skipping target "_CreateBaseApk" because all output files are up-to-date with respect to the input files.
Skipping target "_CompileJava" because all output files are up-to-date with respect to the input files.
Skipping target "_CompileNativeAssemblySources" because all output files are up-to-date with respect to the input files.
Skipping target "_CreateApplicationSharedLibraries" because all output files are up-to-date with respect to the input files.
Skipping target "_CompileToDalvik" because all output files are up-to-date with respect to the input files.
Skipping target "_BuildApkFastDev" because all output files are up-to-date with respect to the input files.
Skipping target "_CopyPackage" because all output files are up-to-date with respect to the input files.
Touching "obj\Debug\net10.0-android\android_debug_keystore.flag".
Skipping target "_Sign" because all output files are up-to-date with respect to the input files.
Using cached value from RegisterTaskObject
Found device: emulator-5554
LastWriteTime of `C:\Users\david\Documents\Develop\Phone\DivisiBill\DivisiBill\obj\Debug\net10.0-android\upload.flag`: 9/24/2026 5:45:44 PM
LastWriteTime of `C:\Users\david\Documents\Develop\Phone\DivisiBill\DivisiBill\bin\Debug\net10.0-android\com.autoplus.divisibill-Signed.apk`: 9/24/2026 11:26:05 PM
DEBUG RunShellCommand emulator-5554 pm install -d "/data/local/tmp/com.autoplus.divisibill-Signed.apk" [336ms]
DEBUG RunShellCommand emulator-5554 rm "/data/local/tmp/com.autoplus.divisibill-Signed.apk" [94ms]
FastDeploy
target.prop.ro.product.build.version.sdk: 36
target.prop.ro.product.cpu.abilist: x86_64;arm64-v8a
target.prop.ro.product.manufacturer: Google
target.prop.ro.product.model: sdk_gphone64_x86_64
target.prop.ro.product.cpu.abi: x86_64
deploy.error.code: ADB0010
deploy.tool: xamarin.sync
deploy.result: Failed
deploy.supports.fastdev: True
deploy.systemapp: False
deploy.duration.ms: 0
pii.deploy.error: 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:671)
at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:3978)
at com.android.server.pm.PackageManagerShellCommand.doRunInstall(PackageManagerShellCommand.java:1626)
at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1562)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:246)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:6684)
at android.os.Binder.shellCommand(Binder.java:1151)
at android.os.Binder.onTransact(Binder.java:953)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4729)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6668)
at android.os.Binder.execTransactInternal(Binder.java:1426)
at android.os.Binder.execTransact(Binder.java:1365)
Caused by: java.io.IOException: Requested internal only, but not enough space
at com.android.internal.content.InstallLocationUtils.resolveInstallVolume(InstallLocationUtils.java:242)
at com.android.internal.content.InstallLocationUtils.resolveInstallVolume(InstallLocationUtils.java:153)
at com.android.internal.content.InstallLocationUtils.resolveInstallVolume(InstallLocationUtils.java:168)
at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:966)
at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:668)
... 13 more
at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)
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()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at AndroidDeviceExtensions.<PushAndInstallPackageAsync>d__13.MoveNext()
--- 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__123.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Xamarin.Android.Tasks.FastDeploy.<InstallPackage>d__123.MoveNext()
--- 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__117.MoveNext()
pii.deploy.file:
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:671)
at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:3978)
at com.android.server.pm.PackageManagerShellCommand.doRunInstall(PackageManagerShellCommand.java:1626)
at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:1562)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:246)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:6684)
at android.os.Binder.shellCommand(Binder.java:1151)
at android.os.Binder.onTransact(Binder.java:953)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4729)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6668)
at android.os.Binder.execTransactInternal(Binder.java:1426)
at android.os.Binder.execTransact(Binder.java:1365)
Caused by: java.io.IOException: Requested internal only, but not enough space
at com.android.internal.content.InstallLocationUtils.resolveInstallVolume(InstallLocationUtils.java:242)
at com.android.internal.content.InstallLocationUtils.resolveInstallVolume(InstallLocationUtils.java:153)
at com.android.internal.content.InstallLocationUtils.resolveInstallVolume(InstallLocationUtils.java:168)
at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:966)
at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:668)
... 13 more
at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)
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()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at AndroidDeviceExtensions.<PushAndInstallPackageAsync>d__13.MoveNext()
--- 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__123.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Xamarin.Android.Tasks.FastDeploy.<InstallPackage>d__123.MoveNext()
--- 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__117.MoveNext()
Done building project "DivisiBill.csproj" -- FAILED.
Build FAILED.
1>Deployment failed to pixel_7_-_api_36_0.
1>Deploy failed
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
========== Deploy completed at 8:04 AM and took 01.611 seconds ==========
Steps to Reproduce
Try to deploy an app to an Android system with insufficient space.
Did you find any workaround?
Yes, once you know what the problem is just allocate (or free up) more space on the test Android platform.
Relevant log output
- Lenguaje dominante
- C#
- Estrellas
- 2.1k
- Forks
- 579
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 220
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dotnet/android
-
Area: App+Library Build
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
EditText.getText() isn't boundAbiertoArea: Mono.Android
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
dotnet/android#9192 · 4 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
automated needs-triage skill-runner
Dificultad 1/5 Menos de una hora Aptitud para principiantes 15/100
Los mantenedores suelen responder en 1 día
-
Area: App Runtime needs-triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
Los mantenedores suelen responder en 1 día
-
Area: App+Library Build enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de dotnet/android
Issues similares
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
madeyoga/AuthEndpoints#365 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
majorsilence/Reporting#493 ·
Los mantenedores suelen responder en 1 día
-
area: backend enhancement payments
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 4 días