Android Pie设备上的Build App在Android Studio中失败

时间:2018-12-25 15:31:12

标签: android android-studio android-9.0-pie

你好,我刚刚将小米Mi A1更新为Android Pie。 现在,我刚刚开始开发一个新的空白hello world应用程序。但是,如果我想在我的设备上对其进行测试,则构建过程将失败。 错误是:

Unknown failure: Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown package: de.philow.simpleplayer
at com.android.server.pm.Settings.isOrphaned(Settings.java:4288)
at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:21138)
at com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:17949)
at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:737)
at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:1486)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:193)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:21371)
at android.os.Binder.shellCommand(Binder.java:634)
at android.os.Binder.onTransact(Binder.java:532)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:2796)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:3911)
at android.os.Binder.execTransact(Binder.java:731)
Error while Installing APKs

谢谢小费

0 个答案:

没有答案