不要在真正的硬件中构建和运行我的应用程序

时间:2019-08-04 15:02:07

标签: android-studio

我尝试在真实硬件上运行我的应用程序 但是android studio返回跟随错误

07:25 PM    'cmd package install-create -r -t -S 1676395' 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:596)
                    at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:1362)
                    at com.android.server.pm.PackageManagerShellCommand.runInstallCreate(PackageManagerShellCommand.java:282)
                    at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:118)
                    at android.os.ShellCommand.exec(ShellCommand.java:96)
                    at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:23614)
                    at android.os.Binder.shellCommand(Binder.java:574)
                    at android.os.Binder.onTransact(Binder.java:474)
                    at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager... (show balloon)

07:26 PM    Session 'app': Error Installing APKs

1 个答案:

答案 0 :(得分:1)

因为很多事情发生

  • 首先,尝试构建->清理项目,然后构建->重建项目

  • 在手机中获得一些免费存储空间

  • 禁用即时运行

  • 确保已启用USB调试

请参见This,可能会有帮助。