V
V
Vitaly Pitalenko2019-03-31 15:00:55
Android
Vitaly Pitalenko, 2019-03-31 15:00:55

Android Studio does not build the application on the phone, how to fix the Unknown failure error?

I'm trying to build an application written in cordova through android studio on a phone with android 9.
When building, I get the following errors:

Unknown failure: Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown package: io.cordova.hellocordova
at com.android.server.pm.Settings.isOrphaned(Settings.java:4306)
at com.android.server.pm. PackageManagerService.isOrphaned(PackageManagerService.java:21583)
at com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:18351)
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:21824)
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:2809)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4014)
at android.os.Binder.execTransact(Binder.java: 731)
Error while Installing APKs

How can it be solved? Before upgrading to android 9 to 8, everything was going. Developer mode is enabled.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pitalenko, 2019-04-02
@Rikisan

A simple reboot of the phone helped. Just a glitch!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question