在OSX上运行PhoneGap Android应用



我无济

该应用程序在运行时在iOS上正常工作:

phonegap run ios

但是,当我运行时:

phonegap run android

我得到

[phonegap] executing 'cordova run android'...
[phonegap] completed 'cordova run android'`

但是什么也没有发生。当我运行时:

phonegap run android --verbose

我得到错误:

BUILD FAILED
/usr/local/Cellar/android-sdk/24.1.2/tools/ant/build.xml:601: The following error occurred while executing this line:
/usr/local/Cellar/android-sdk/24.1.2/tools/ant/build.xml:653: The following error occurred while executing this line:
/usr/local/Cellar/android-sdk/24.1.2/tools/ant/build.xml:698: null returned: 1

ERROR running one or more of the platforms: Error: /Users/*/Google Drive/Websites/angular-phonegap/*/platforms/android/cordova/run: Command failed with exit code 1
You may not have the required environment or OS to run this project

我过去遇到了一个类似的问题,涉及编辑我的路径变量,不确定这是同一问题还是什么。无论如何,任何帮助都将不胜感激。

谢谢

我认为您没有所有要求,请在此处查看其他时间,Cordova在此错误中失败,而找不到要运行的特定平台命令。遵循以下指示:

  1. 检查Java SDK是否已安装并已经在您的路径中。
  2. 检查已经安装了Android Studio或SDK独立,SDK的bin文件夹处于路径中。
  3. 检查安装了ANT(在Mac上安装它,这是最好的选择),并将其放在路径中。

有关查看的完整列表,请参阅此Cordova文档。

请耐心等待,然后逐步遵循第一步,您的问题必须是以下步骤之一。

相关内容

最新更新