如何在仿真器中部署离子应用程序时解决错误

问题描述 投票:0回答:1

我想在模拟器上部署我的离子应用程序。以下是我正在使用的应用程序版本。

离子:3.20.1

科尔多瓦:8.1.2([email protected]

Android:7.1.1

当我在Powershell上运行离子cordova模拟android命令时。我得到以下错误。

Waiting for emulator to start...

emulator: WARNING: Crash service did not start

emulator: Requested console port 5584: Inferring adb port 5585.
emulator: WARNING: cannot read adb public key file: C:\Users\Utkarsh 
Soni\.android\adbkey.pub
emulator: WARNING: trying again by copying from home dir
emulator: WARNING: cannot read adb public key file (failed): C:\Users\Utkarsh 
Soni\.android\adbkey.pub
HAX is working and emulator runs in fast virt mode.
Failed to execute shell command "getprop,dev.bootcomplete"" on device: Error: 
C:\Users\Utkarsh Soni\AppData\Local\Android\Sdk\platform-tools\adb.exe: 
Command failed with exit code 1 Error output:
error: device still authorizing
android cordova ionic-framework deployment android-emulator
1个回答
1
投票

步骤1:

创建新的虚拟设备。

第2步:

选择不是谷歌游戏商店的设备。

第3步:

提前设置:图形应该是硬件。

完成。

© www.soinside.com 2019 - 2024. All rights reserved.