Eclipse Stalling on Android apk安装

dan*_*ose 5 eclipse android android-emulator appmobi cordova

我一直在努力解决这个问题两天没有评估.任何帮助将非常感激.

我安装了以下内容:

  • 日食

  • Android的SDK-的MacOSX

  • Android SDK工具

  • Android 2.2 API 8

  • Android 2.3.3 API 10

我有一个phonegap项目设置.点击"运行" - >"运行方式" - >"Android应用程序"

在控制台中点击我看到:

[2011-12-14 10:47:38 - Foanar] ------------------------------

[2011-12-14 10:47:38 - Foanar] Android Launch!

[2011-12-14 10:47:38 - Foanar] adb is running normally.

[2011-12-14 10:47:38 - Foanar] Performing com.phonegap.foanar.App activity launch

[2011-12-14 10:47:38 - Foanar] Automatic Target Mode: launching new emulator with compatible 
AVD '3DEVO'

[2011-12-14 10:47:38 - Foanar] Launching a new emulator with Virtual Device '3DEVO'

[2011-12-14 10:47:40 - Emulator] 2011-12-14 10:47:40.256 emulator-arm[3278:80b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.

[2011-12-14 10:47:40 - Emulator] emulator: WARNING: Unable to create sensors port: Connection refused

[2011-12-14 10:47:40 - Foanar] New emulator found: emulator-5554

[2011-12-14 10:47:40 - Foanar] Waiting for HOME ('android.process.acore') to be launched...

[2011-12-14 10:48:04 - Foanar] HOME is up on device 'emulator-5554'

[2011-12-14 10:48:04 - Foanar] Uploading Foanar.apk onto device 'emulator-5554'

[2011-12-14 10:48:05 - Foanar] Installing Foanar.apk...

AVD"3DEVO"推出但从未安装Foanar.apk.我从未在LogCat或Console中遇到任何错误.Eclipse似乎挂在这里,不再进一步.我怀疑它可能与这一行有关:

[2011-12-14 10:47:40 - Emulator] emulator: WARNING: Unable to create sensors port: Connection refused

我已经能够通过终端安装应用程序: adb install /CapitalOnline/android/Foanar/bin/Foanar.apk

我想让Eclipse备份并且终端工作正常,但Eclipse更方便直接从Eclipse测试构建.我曾经能够一直运行这个.Eclipse之外对我的机器的唯一更改可能与此有任何关系......我通过我的Chrome浏览器安装了AppMobi XDK和AppMobiPhoneGap XDK,它在我的用户目录中创建了自己的开发环境.是否有可能以某种方式将端口交叉并拒绝连接?

感谢任何愿意帮助解决这个问题的人!

ArV*_*Van 4

有一次我也遇到过这个问题。我不记得我具体做了什么来解决这个问题。在那段时间我遇到了 2 个与模拟器相关的问题,并且我找到了这两个问题的解决方案,但现在我不记得哪个解决方案针对哪个问题:) 所以我会建议这两种方法。

  1. 尝试清理模拟器上的用户数据。为此,请打开您的 avd 位置(对我来说是“C:\Users\UserName.android\avd”)找到您的模拟器(我猜是 3DEVO.avd)并删除名为“ userdata.img”“userdata”的文件-qemu.img”
  2. 当您的程序运行并卡住时,打开任务管理器,转到进程并终止 adb。返回 Eclipse 并再次运行。如果出现有关 adb 未启动的错误,请退出 Eclipse 并再次启动。

希望这会有所帮助。