离子:Android模拟器错误 [英] Ionic:Android Emulator Error

查看:1038
本文介绍了离子:Android模拟器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Android Studio v3.0附带的Android Emulator测试我的Ionic(3.16.0)混合应用程序。 / MyApp的>离子cordova构建android 成功创建构建。但是当我运行 / myapp>离子cordova模拟android 模拟器启动并加载屏幕,但是,我无法在模拟器中找到我的应用程序。终端日志中的堆栈跟踪如下所示:

I'm trying to test my Ionic(3.16.0) hybrid app using Android Emulator that ships with Android Studio v3.0. /myapp> ionic cordova build android successfully creates the build. 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. 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.

我的adb服务器正在运行,平台工具路径已添加到系统路径。我是Cordova 6.5.0。

I've adb server running and the platform-tools path added to the system PATH. I've Cordova 6.5.0.

我可以获得一些关于上述日志中的错误以及如何在模拟器中启动我的应用程序的帮助吗? / p>

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 ...(86 )

This issue was resolved after I changed the CPU/ABI Image from "Google Play...(x86)" to "Google API...(x86)"

这篇关于离子:Android模拟器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆