简体   繁体   English

ubuntu phonegap运行android错误1

[英]ubuntu phonegap run android error 1

I'm trying to run the Hello-World app of Phonegap on Ubuntu 16. 我正在尝试在Ubuntu 16上运行Phonegap的Hello-World应用程序。

"/my-app# phonegap --verbose run android" “ / my-app#phonegap --verbose运行android”

But no matter what it always takes very long and finishes with an error: 但是,不管它总是花很长时间并且以错误结束:

"Running adb shell command "getprop dev.bootcomplete" on target emulator-5584..." “在目标模拟器-5584上运行adb shell命令“ getprop dev.bootcomplete” ...”

"Running command: adb -s emulator-5584 shell getprop dev.bootcomplete" “运行命令:adb -s emulator-5584 shell getprop dev.bootcomplete”

"Command finished with error code 1: adb -s,emulator-5584,shell,getprop,dev.bootcomplete " “命令以错误代码1结束:adb -s,emulator-5584,shell,getprop,dev.bootcomplete

I've creating different avds and running everything as root user but no change. 我创建了不同的avds,并以root用户身份运行所有内容,但没有任何变化。

Any suggestion what this "error code 1" means would be highly appreciated - I could only find other error codes with the search. 任何关于“错误代码1”的含义的建议都将受到高度赞赏-我只能通过搜索找到其他错误代码。

Try running adb kill-server and restart doing all the process again. 尝试运行adb kill-server然后重新开始执行所有过程。

EDIT: Try starting emulator with ubuntu cmd: 编辑:尝试使用ubuntu cmd启动模拟器:

LD_PRELOAD='/usr/lib/x8stdc++.so.6' ~/Android/Sdk/tools/emulator -netdelay none -netspeed full -avd Nexus_5X_API_21

where Nexus_5X_API_21 is your emulator name Nexus_5X_API_21是您的仿真器名称

~/Android/Sdk/tools/emulator is your path where emulator is stored ~/Android/Sdk/tools/emulator是您存储~/Android/Sdk/tools/emulator的路径

Do this after adb kill-server , then on another cmd tab, try running adb kill-server之后执行此操作,然后在另一个cmd选项卡上,尝试运行

phonegap emulate android --verbose

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

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