Xamarin.Forms Application failed to deploy and run in Release Mode

RedRaRedRa Member ✭✭✭

Hi guys,

I have faced with in issue that when I try to deploy or to run code in Release mode (Visual Studio 2019 16.3.5, Android) I get the following error:

Severity Code Description Project File Line Suppression State
Error ADB0000: Deployment failed
Mono.AndroidTools.InstallFailedException: Unexpected install output:
Exception occurred while executing:
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:412)
at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:2465)
at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:930)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:166)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23637)
at android.os.Binder.shellCommand(Binder.java:642)
at android.os.Binder.onTransact(Binder.java:540)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2804)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4427)
at com.android.server.pm.HwPackageManagerService.onTransact(HwPackageManagerService.java:432)
at android.os.Binder.execTransact(Binder.java:739)
Caused by: java.io.IOException: Requested internal only, but not enough space
at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:241)
at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:157)
at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:172)
at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:509)
at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:410)
... 11 more

at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in E:\A_work\275\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:line 345
at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.b__0(Task1 t) in E:\A\_work\275\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 753 at System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()
at System.Threading.Tasks.Task.Execute() 0

Severity Code Description Project File Line Suppression State
Error ADB0010: Unexpected install output:
Exception occurred while executing:
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:412)
at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:2465)
at com.android.server.pm.PackageManagerShellCommand.runInstall(PackageManagerShellCommand.java:930)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:166)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23637)
at android.os.Binder.shellCommand(Binder.java:642)
at android.os.Binder.onTransact(Binder.java:540)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2804)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4427)
at com.android.server.pm.HwPackageManagerService.onTransact(HwPackageManagerService.java:432)
at android.os.Binder.execTransact(Binder.java:739)
Caused by: java.io.IOException: Requested internal only, but not enough space
at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:241)
at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:157)
at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:172)
at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:509)
at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:410)
... 11 more

at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in E:\A_work\275\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:line 345
at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass95_0.b__0(Task1 t) in E:\A\_work\275\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 753 at System.Threading.Tasks.ContinuationTaskFromResultTask1.InnerInvoke()
at System.Threading.Tasks.Task.Execute() 0

Have anybody faced with the same issue and how to fix it ?

Best Answers

Answers

  • RedRaRedRa Member ✭✭✭
    edited October 19

    @Harshita said:
    The exception sayings that Your device dont have enough space for deploy this app.Make sure that you have enough space on your device.

    Yeah, I saw this line but I have not thought that it is relates to memory of my device :(
    Thanks you !!

    But when I deploy it with Release Mode right now I get another error:

    "Value cannot be null.\nParameter name: key"

    at System.Collections.Generic.Dictionary2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x00008] in <b62efd0b4c50440fb49f0dfd6b2feb22>:0 at System.Collections.Generic.Dictionary2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in :0
    at Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteDateTimeAddTranslator..ctor () [0x000c5] in :0
    at Microsoft.EntityFrameworkCore.Sqlite.Query.ExpressionTranslators.Internal.SqliteCompositeMethodCallTranslator..cctor () [0x0000e] in :0

    Seems like some issue with EntityFrameworkCore, but it strange because in Debug Mode I did not get this error ...

    Have you experienced this issue ?

Sign In or Register to comment.