简体   繁体   English

云连接的移动应用程序中的zend studio创建android应用程序无法正常工作

[英]zend studio in cloud connected mobile application create android application not working

I have developed one simple cloud connected mobile application. 我已经开发了一个简单的云连接的移动应用程序。 When I export this application to native application I'm getting following error. 当我将此应用程序导出到本机应用程序时,出现以下错误。

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)

I have tried many solutions but I have no experience about zend studio and android sdk. 我已经尝试过许多解决方案,但是我对zend studio和android sdk没有任何经验。

I had to install all versions of Android to function properly with Zend Studio 11. (not just the latest) 我必须安装所有版本的Android才能在Zend Studio 11中正常运行(不仅仅是最新的)。

I would recommend you do the same, it's done in the SDK Manager. 我建议您做同样的事情,这是在SDK Manager中完成的。 For Windows that's in: 对于Windows,位于:

Start > Android SDK Tools > SDK Manager. 开始> Android SDK工具> SDK管理器。

Once open, select the Android version necessary (seems 4.2 by your error), install it, close and restart SDK Manager and Zend, should work! 打开后,选择所需的Android版本(错误似乎为4.2),安装它,然后关闭并重新启动SDK Manager,Zend应该可以使用!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM