Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Debug Deployment Failure Reason Obscure

オープン
#13,253 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
58/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, csharp
領域
devtools

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

Area: App Runtime bug
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

主要言語
C#
スター
2.1k
フォーク
579
平均マージ
1日 9時間
マージ済み PR(30日)
220

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/android のほかの issue

dotnet/android の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。