简体   繁体   English

android设备中的运行时错误

[英]run time error in android devices

i have created an app and when i was checking it with my device it shows the following error 我已经创建了一个应用,当我用设备检查它时,显示以下错误

[2011-02-22 11:30:37 - Chapter05] Failed to upload Chapter.apk on device 'HT96WKF01291' [2011-02-22 11:30:37 - Chapter05] java.io.IOException: Unable to open sync connection! [2011-02-22 11:30:37-Chapter05]无法在设备“ HT96WKF01291”上上传Chapter.apk [2011-02-22 11:30:37-Chapter05] java.io.IOException:无法打开同步连接! [2011-02-22 11:30:37 - Chapter05] Launch canceled! [2011-02-22 11:30:37-Chapter05]发布已取消!

What it refers, pls help me in solving this issue 它的意思是,请帮助我解决这个问题

When you are opening the app you are sync connection, but which is not possible for your device. 当您打开应用程序时,您正在同步连接,但您的设备无法同步。 So it is throwing a IOException. 因此它抛出了IOException。

Uninstall previously build apk if any. 卸载以前生成的apk(如果有)。 restart your eclipse and restart you device and try again 重新启动Eclipse并重新启动设备,然后重试

Try killing the Android Debug Bridge (adb) by just running the command adb kill-server and then adb start-server on your command prompt. 尝试通过仅在命令提示符下运行命令adb kill-server然后adb start-server来杀死Android调试桥(adb)

Also try disbale/enable the USB Debugging option on your device 另外,请尝试停用/启用设备上的USB Debugging选项

Note: If you have not added the android-sdk-windows\\platform-tools or android-sdk-windows\\tools directory to the windows path in your system environments then you can not able to run this command directly. 注意:如果您尚未将android-sdk-windows\\platform-toolsandroid-sdk-windows\\tools目录添加到system environments的Windows路径中,那么您将无法直接运行此命令。 Therefore you need to go this path and after that run the above mentioned command. 因此,您需要走这条路,然后运行上述命令。

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

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