Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11186

"cordova build" fails while "cordova prepare && cordova compile" works

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 6.1.1
    • None
    • cordova-lib
    • Ubuntu 15.10

    Description

      Cordova CLI help says cordova build is just an alias for cordova prepare && cordova compile, but I got two different results:

      In confix.xml I have a few <plugin/>'s and <engine/>'s.
      Assume I have not built platforms and plugins yet (rm -rf plugins/ platforms/):

      $ cordova build
      Error: No platforms added to this project. Please use `cordova platform add <platform>`.
      
      $ cordova prepare && cordova compile
      Restoring platform android@5.1.1 referenced on config.xml
      Adding android project...
      Creating Cordova project for the Android platform:
      ...
      

      Attachments

        Activity

          People

            raphinesse Raphael von der GrĂ¼n
            lexmourek Lex Mourek
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: