Debug Deployment Failure Reason Obscure
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 58/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- C#
- Star
- 2.1k
- Fork
- 579
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 215
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dotnet/android
-
Area: App+Library Build
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
EditText.getText() isn't boundĐang mởArea: Mono.Android
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
dotnet/android#9192 · 4 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: App+Library Build needs-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[aw] No-Op RunsĐang mởagentic-workflows needs-triage
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 1/100
dotnet/android#13251 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 51/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của dotnet/android
Issue tương tự
-
is:bug is:FQNIssue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nunit/nunit3-vs-adapter#1527 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug effort:S P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nightscout/nocturne#2840 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
fluentmigrator/fluentmigrator#2424 ·
-
CI: миграции на пустой PostgresĐang mởtrack:release
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100