2016-09-03 62 views
0

我最近從AVD管理器更新了現有的SDK後,我遇到了在我的虛擬設備上啓動我的Android應用程序的問題。當我選擇從Appcelerator的工作室我現有的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:之前我幾天以前更新安裝Android SDK相關

Installed Android SDKs and SDK addons

事情本來進行得很細。這個問題使得使用Appcelerator Studio的Android開發非常痛苦,緩慢且沒有生產力,在Studio中無法進行調試,並且需要手動編譯和安裝APK到AVD。

回答

1

您的Titanium SDK版本5.0.3是相當古老的。你可以嘗試使用最新的SDK 5.4 GA和Studio 4.7.0 GA。

+0

謝謝,使用SDK 5.4.0 GA確實有效!任何想法爲什麼使用v5.0.3打破功能? –