Android Studio does not collect the application on the phone how to fix Unknown failure?

Trying to collect app written in cordova using android studio for your android phone from 9.
During Assembly produces here such error:
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:of 18,351)
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? Prior to the upgrade to android 9 8 all going. Developer mode is enabled.
March 19th 20 at 09:24
1 answer
March 19th 20 at 09:26
Solution
Helped by banal reboot of the phone. Just a glitch!

Find more questions by tags Android StudioApache CordovaAndroid