科尔多瓦希望机器人-19,我的android-20我的、科尔、机器人、多瓦

2023-09-06 13:39:14 作者:你迷人的爹

有很多问题在这里就运行添加科尔多瓦Android平台命令的问题。我已经试过每一个意的解决方案,并没有帮助我。

There are many questions here regarding problems running "cordova add platform android" command. I've tried each purposed solution and none have helped me.

错误信息

~/sandbox/hello$ cordova platform add android
Creating android project...

/home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:126
                    throw e;
                          ^
Error: Please install Android target 19 (the Android newest 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 /home/acras/.cordova/lib/android/cordova/3.5.0/bin/lib/check_reqs.js:80:29
    at _fulfilled (/home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:798:54)
    at self.promiseDispatch.done (/home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:827:30)
    at Promise.promise.promiseDispatch (/home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:760:13)
    at /home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:574:44
    at flush (/home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:415:13)
Error: /home/acras/.cordova/lib/android/cordova/3.5.0/bin/create: Command failed with exit code 8
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)

我做了什么错误信息告诉我(运行Android,并安装了所有的软件包),但错误依然存在。

I did what the error message tells me (run android and installed all packages) but the error persists.

PATH :Android SDK中的家,工具和平台工具的路径

PATH: Android SDK home, tools and platform-tools are in the path

在Android SDK中内部的平台文件夹我只有机器人-20和android-L文件夹。

In the platforms folder inside android sdk I have only android-20 and android-L folders.

我想,如果我想补充的android-19或进行科尔多瓦希望的android-20将解决我的问题。我应该怎么做才能达到这两个选项?

I guess if I add android-19 OR make cordova want android-20 will solve my problem. What should I do to achieve both options?

感谢您

推荐答案

目前科尔多瓦(4.1.2)只希望建立对API V19

The current Cordova (4.1.2) only wants to build against API v19

> cordova build android
Running command: /Users/Duncan/Documents/Work/rescyoume/cordova/platforms/android/cordova/build 
[Error: Please install Android target "android-19".
Hint: Run "android" from your command-line to open the SDK manager.]

要安装V19,运行机器人因为它表明,然后在打开时,选择GUI 的Andr​​oid 4.4.2(API 19)/ SDK平台在树中,点击安装包... 按钮。

To install v19, run android as it suggests and then, in the GUI that opens, select Android 4.4.2 (API 19)/SDK Platform in the tree and click the Install packages... button.

 
精彩推荐
图片推荐