简体   繁体   English

离子:Android模拟器错误

[英]Ionic:Android Emulator Error

I'm trying to test my Ionic(3.16.0) hybrid app using Android Emulator that ships with Android Studio v3.0. 我正在尝试使用Android Studio v3.0附带的Android Emulator测试我的Ionic(3.16.0)混合应用程序。 /myapp> ionic cordova build android successfully creates the build. /myapp> ionic cordova build android成功创建了构建。 But when I run /myapp> ionic cordova emulate android the emulator starts and loads the screen, however, I'm not able to locate the my app in the emulator. 但是,当我运行/myapp> ionic cordova emulate android模拟器启动并加载屏幕,但是,我无法在模拟器中找到我的应用程序。 Also the stack trace in the terminal logs are seen below: 终端日志中的堆栈跟踪如下所示:

Waiting for emulator to start...

emulator: Requested console port 5584: Inferring adb port 5585.
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
emulator:
Listening for console connections on port: 5584
emulator: Serial number of this emulator (for ADB): emulator-5584
Error: Failed to execute shell command "getprop,dev.bootcomplete"" on device: Error: C:\Users\ilourdus\AppData\Local\Android\Sd
k\platform-tools\adb.exe: Command failed with exit code 1 Error output:
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

I've adb server running and the platform-tools path added to the system PATH. 我已经运行adb服务器并将平台工具路径添加到系统PATH中。 I've Cordova 6.5.0. 我是Cordova 6.5.0。

Can I get some help about the errors in the above log and how to bring up my app in the emulator? 我可以获得一些关于上述日志中的错误以及如何在模拟器中调出我的应用程序的帮助吗?

我将CPU / ABI图像从“Google Play ...(x86)”更改为“Google API ...(x86)”后,此问题得以解决

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM