安装没有成功。无法安装应用程序。 java.io.IOException:仅在内部请求,但空间不足
Posted
技术标签:
【中文标题】安装没有成功。无法安装应用程序。 java.io.IOException:仅在内部请求,但空间不足【英文标题】:Installation did not succeed. The application could not be installed. java.io.IOException: Requested internal only, but not enough space 【发布时间】:2020-11-10 16:32:09 【问题描述】:许多答案说禁用 Instant Run 但在 android 4.0.1 中找不到 Instant Run 任何帮助或知识将不胜感激!谢谢! :)
以下是我遇到的错误
[0] 'D:\PC-name\Android\APL Android\APL-REPO\app\build\outputs\apk\debug\app-debug.apk'
Installation failed due to: ''cmd package install-create -r -t --full -S 10837822' returns error 'Unknown failure: 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:501)
at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:2415)
at com.android.server.pm.PackageManagerShellCommand.runInstallCreate(PackageManagerShellCommand.java:949)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:165)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:26073)
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:3329)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4779)
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:531)
at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:447)
at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:462)
at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:660)
at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:499)
... 10 more''```
【问题讨论】:
“空间不足”有什么不明白的地方? 【参考方案1】:问题在于您正在运行的设备上的存储空间。清除一些空间后尝试安装或安装在模拟器上。
【讨论】:
以上是关于安装没有成功。无法安装应用程序。 java.io.IOException:仅在内部请求,但空间不足的主要内容,如果未能解决你的问题,请参考以下文章