2016-01-08 76 views
0

我開發了一個簡單的雲連接的移動應用程序。當我將此應用程序導出到本機應用程序時,出現以下錯誤。zend工作室在雲連接的移動應用程序創建android應用程序不工作

Error screenshot

Cordova library for "android" already exists. No need to download. Continuing. 
Checking if platform "android" passes minimum requirements... 
Checking Android requirements... 
Running "android list target" (output to follow) 
Available Android targets: 
---------- 

id: 1 or "android-19" 
    Name: Android 4.4 
    Type: Platform 
    API level: 19 
    Revision: 1 
    Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in 
    ABIs : armeabi-v7a 

Error: Please install Android target 17 (the Android 4.2 SDK). Make sure you have the latest Android tools installed as well. Run `android` from your command-line to install/update any missing SDKs or tools. 
    at C:\Program Files (x86)\Zend\Zend Studio 11.0.2\plugins\com.zend.php.ccm.core.win32_11.0.2.v20140926-0202\resources\nodejs\node_modules\cordova\src\platform.js:268:42 
    at C:\Program Files (x86)\Zend\Zend Studio 11.0.2\plugins\com.zend.php.ccm.core.win32_11.0.2.v20140926-0202\resources\nodejs\node_modules\cordova\src\metadata\android_parser.js:54:17 
    at C:\Program Files (x86)\Zend\Zend Studio 11.0.2\plugins\com.zend.php.ccm.core.win32_11.0.2.v20140926-0202\resources\nodejs\node_modules\cordova\node_modules\shelljs\shell.js:1707:7 
    at ChildProcess.exithandler (child_process.js:645:7) 
    at ChildProcess.EventEmitter.emit (events.js:98:17) 
    at maybeClose (child_process.js:753:16) 
    at Socket.<anonymous> (child_process.js:966:11) 
    at Socket.EventEmitter.emit (events.js:95:17) 
    at Pipe.close (net.js:465:12) 

我已經嘗試了許多解決方案,但我不知道的Zend Studio和Android SDK中的經驗。

回答

0

我必須安裝Android的所有版本與Zend Studio的11正常工作(不只是最新的)

我會建議你做同樣的,它是在SDK管理器中完成的。對於Windows中的:

開始> Android SDK工具> SDK管理器。

一旦打開,選擇Android版本必要(似乎由您的錯誤4.2),安裝它,關閉並重新啓動SDK Manager和Zend,應該工作!

相關問題