简体   繁体   English

在没有有线连接的情况下在android设备中运行离子项目

[英]Run ionic project in android device without wired connection

I have tried to run my ionic v3.x project in android device without wired connection and i have fired this commands. 我试图在没有有线连接的情况下在android设备中运行ionic v3.x项目,并且我已经触发了此命令。 path is /home/Android/Sdk/platform-tools. 路径是/ home / Android / Sdk / platform-tools。

./adb start-server
./adb devices
./adb tcpip 5555
./adb connect 10.42.0.130

my mobile is connected through same WiFi network and after this, I have run my ionic project to the mobile but following error has occurred. 我的手机通过同一WiFi网络连接,此后,我已经将离子项目运行到该手机上,但是发生以下错误。

Error: android: Command failed with exit code 2
[ERROR] An error occurred while running cordova run android (exit code 1).

so please help me out what is the problem. 所以请帮我解决问题。 Thank you in advance and all suggestions are welcome 预先谢谢您,欢迎提出所有建议

do you perform the steps which are mentioned in the first answer of the stackoverflow post: Run/install/debug Android applications over Wi-Fi? 您是否执行stackoverflow帖子的第一个答案中提到的步骤: 通过Wi-Fi运行/安装/调试Android应用程序? ? please confirm. 请确认。 I think it will definitely solve your problem. 我认为这一定会解决您的问题。

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

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