【问题标题】:Ionic:Android Emulator Error离子:Android模拟器错误
【发布时间】:2017-11-04 18:37:56
【问题描述】:

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

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。

我能否就上述日志中的错误以及如何在模拟器中调出我的应用程序获得一些帮助?

【问题讨论】:

    标签: android cordova ionic-framework ionic3 cordova-3


    【解决方案1】:

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

    【讨论】:

    • 我该怎么做?为什么这些答案的信息也如此稀缺?
    • 请提供完整的详细信息,说明在哪里可以找到它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-04-03
    • 1970-01-01
    • 1970-01-01
    • 2021-11-06
    • 1970-01-01
    • 1970-01-01
    • 2012-01-28
    相关资源
    最近更新 更多