在亚行的命令行吊进行安装(PhoneGap的) [英] ADB commandline Hanging during install (PhoneGap)

查看:241
本文介绍了在亚行的命令行吊进行安装(PhoneGap的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的PhoneGap的应用程序拒绝加载到我的Andr​​oid设备(甚至HellowWorld默认的应用程序被拒绝加载)

My Phonegap app refuses to load onto my Android device (even the HellowWorld default app is refusing to load)

一切都运行好了,直到今天。 这是我的控制台日志:

Everything was running just great until today. Here's my console log:

***\>adb devices
List of devices attached
4c05609b        device

***\>phonegap run --device -V android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] compiling Android...
[phonegap] Generating config.xml from defaults for platform "android"
[phonegap] Compiling app on platform "android" via command "cmd" /c ***\platforms\android\cordova\build
[phonegap] Platform "android" compiled successfully.
[phonegap] successfully compiled Android app
[phonegap] installing app onto device
[phonegap] Generating config.xml from defaults for platform "android"
[phonegap] Running app on platform "android" via command "cmd" /c ***\platforms\android\cordova\run --device

它只是坐在那里说运行......直到永远。

It just sits there saying running... forever.

我还有一个终端窗口亚行logcat 运行,在某些时候开(也许10-15秒到最后一行得到印)停止记录。终止进程和后续调用到比较悬亚行logcat 的结果(没有记录的话)

I have another terminal window open with adb logcat running and at some point (maybe 10-15 seconds into that last line getting printed) it stops logging. Termination of the process and subsequent calls to adb logcat result in more hanging (no logging at all)

于是我必须做一个杀服务器,启动服务器,以打破这种无休止的挂在这一点,PhoneGap的过程中终止与:

So then I have to do a kill-server, start-server to break out of this endless hanging at which point the phonegap process terminates with:

       [error] An error occurred while running the android project.
***\platforms\android\cordova\node_modules\q\q.js:126
                    throw e;
                          ^
ERROR: Failed to launch application on device: ERROR: Failed to install apk to d
evice: Error executing "adb -s 4c05609b install -r "***\platforms\android\bin\Po
ached-debug-unaligned.apk"": protocol failure

我已经试过::

  • 删除我.cordova文件夹C:\ Users \用户名
  • 运行ADB直接安装(不PhoneGap的)
  • 部署到仿真器(同样的问题)
  • 在拔下/重新插入设备
  • 重新启动所有设备
  • 在反复开发模式的设备和撤销USB调试权限

我所有的想法!

将大大AP preciate任何提示或线索。

Would greatly appreciate any tips or leads.

亚行版本1.0.31

的Galaxy S3运行的是Android 4.3版

编辑:

部署到模拟器声称成功完成,但应用程序从未打开,并不会出现在仿真器内部的应用程序列表。所以,我也没办法的实际测试是在模拟器上无论是。

Deploying to an emulator claims to complete successfully, but the app never opens and does not appear in the app list inside the emulator. So I have no way of actually testing it on the emulator either.

真的AP preciate一些帮助。

Would really appreciate some assistance.

编辑2:

在一些进一步的修修补补我发现我的问题,可以更具体地描述为的亚行挂起(冻结),当我试图跟我的设备。的我已经确定了这一点,因为 ADB外壳 ADB安装亚行推的所有上述故障的方法相同。没有错误,只是有限的等待。

After some further tinkering I've discovered my issue can be more specifically described as ADB hangs (freezes) when I attempt to talk to my device. I've determined this because adb shell, adb install, and adb push all fail the same way as described above. No error, just finite waiting.

亚行logcat ADB设备的,和其他读取功能完全正常工作,直到上述写入功能之一挂在这种情况下,我需要做的亚行杀死服务器 TASKKILL 的获得的亚行logcat 的再次合作。

adb logcat, adb devices, and other read functions work perfectly fine until one of the aforementioned write functions hangs in which case I need to do a adb kill-server or TASKKILL to get adb logcat working again.

不知道这是否增加的信息帮助,但你去那里。过去的事情我还没试过就是做一个工厂重置在我的手机所建议的这家伙。如果我不能找到一个解决方案,很快我将我的数据备份,尽我所能,并尝试这个...

Not sure if this added information helps, but there you go. The last thing I haven't yet tried is to do a factory reset on my phone as suggested by this fellow. If I can't find a solution soon I will back up my data as best I can and attempt this...

请救救我面前这成为我最后的选择!

Please save me before this becomes my last option!

推荐答案

在这种情况下帮助别人我有类似的症状的问题。亚行安装-r的apk路径将无限期挂起。

In case this helps others I had a problem with similar symptoms. ADB install -r "apk path" would hang indefinitely.

我troubleshooted的东西无数,并确定这是我的USB电缆长度。

我为我插上我的设备到一个USB延长线。我的设备电缆的总长度和USB延长线导致出现此问题。卸下延长线解决问题,最终我与最终的解决方案更短的延长线取代了我的USB延长线。

I have an USB extender cable as that I plug my devices into. The combined length of my device's cable and the USB extender cable caused this issue. Removing the extension cable fix the issue and eventually I replaced my USB extender cable with a shorter extension cable for the final solution.

这篇关于在亚行的命令行吊进行安装(PhoneGap的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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