【问题标题】:Cordova build android科尔多瓦构建安卓
【发布时间】:2014-06-16 10:32:12
【问题描述】:

当我想尝试 ionic 天气应用程序 (https://github.com/driftyco/ionic-weather/) 当我想使用 cordova 为我的phone-gap 应用程序构建 android 时遇到了问题。当我执行命令 cordova build android 时,我在终端中收到此消息

Error: An error occurred while listing Android targets

我在 ubuntu 13.10 上工作

【问题讨论】:

    标签: android ubuntu cordova ionic-framework


    【解决方案1】:

    我能够通过以下步骤成功构建项目:

    npm install -g cordova ionic
    git clone https://github.com/driftyco/ionic-weather/
    cd ionic-weather
    cordova platform add android
    cordova build android
    

    您可能缺少所需的 android sdk 工具,或者它们可能未添加到您的系统路径中。

    参考这个问题

    cordova ubuntu: An error occurred while listing Android targets

    并关注this guide 以确保您的环境设置正确。

    【讨论】:

    • 这不是我问题的完美解决方案
    猜你喜欢
    • 1970-01-01
    • 2019-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-06-03
    相关资源
    最近更新 更多