Appcelerator Studio超时等待Android Emulator启动

时间:2016-09-03 13:09:34

标签: appcelerator appcelerator-studio

我最近在AVD Manager中更新了现有的SDK后,在我的虚拟设备上启动Android应用时遇到了问题。当我从Appcelerator Studio中选择我现有的Android模拟器并点击运行时,它编译得很好,但是一旦编译完成,它会说如下:

[INFO] :   Signing apk: /Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home/bin/jarsigner "-sigalg" "MD5withRSA" "-digestalg" "SHA1" "-keystore" "/Users/<username>/Library/Application Support/Titanium/mobilesdk/osx/5.0.3.v20151203125132/android/dev_keystore" "-storepass" "*******" "-signedjar" "/Users/<username>/Work/Appcelerator/<MyApp>/build/android/bin/<MyApp>.apk" "/Users/<username>/Work/Appcelerator/<MyApp>/build/android/bin/app-unsigned.apk" "tidev"
[INFO] :   Aligning zip file: /Users/<username>/.android/build-tools/23.0.2/zipalign "-v" "4" "/Users/<username>/Work/Appcelerator/<MyApp>/build/android/bin/<MyApp>.apk" "/Users/<username>/Work/Appcelerator/<MyApp>/build/android/bin/<MyApp>.apkz"
[INFO] :   Writing build manifest: /Users/<username>/Work/Appcelerator/<MyApp>/build/android/build-manifest.json
[INFO] :   Making sure the adb server is running
[INFO] :   Waiting for emulator to become ready...
[LiveView] version 1.0.9
[LiveView] File Server Started on Port 8324
[LiveView] Alloy project monitor started
[LiveView] Event Server Started on Port 8323
[TRACE] :  Timed out while waiting for the emulator to boot; waited 240000 ms
[ERROR] :  Emulator timeout after waiting 240000 ms

奇怪的是,模拟器确实启动并正常启动,但Appcelerator Studio似乎没有“看到”模拟器已启动,因此它会一直等待并最终超时。创建新的虚拟设备并不能消除这个问题。

启用和禁用LiveView时会出现此问题。

我的环境是:

Operating System
  Name                        = Mac OS X
  Version                     = 10.11.6
  Architecture                = 64bit
  # CPUs                      = 4
  Memory                      = 8.0GB

Node.js
  Node.js Version             = 4.4.2
  npm Version                 = 3.8.5

Titanium CLI
  CLI Version                 = 5.0.9
  node-appc Version           = 0.2.31

Titanium SDK
  5.0.3.v20151203125132

Mac OS X
  Command Line Tools          = installed

Intel® Hardware Accelerated Execution Manager (HAXM)
  Installed                   = yes
  Memory Limit                = 2 GB

以下是我安装的SDK:

Installed Android SDKs and SDK addons

在我几天前更新已安装的Android SDK之前,一切正常。这个问题使得使用Appcelerator Studio的Android开发非常痛苦,缓慢而且没有效率,在Studio中无法进行调试,并且必须手动编译并将APK安装到AVD。

1 个答案:

答案 0 :(得分:1)

您的Titanium SDK 5.0.3版已经很老了。您可以尝试使用最新的SDK 5.4 GA和Studio 4.7.0 GA。