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

"cordova platform add android" cannot find cordova-2.5.0.js file at the specified path.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • cordova-cli
    • None
    • OSX

    Description

      Hi, when trying to add the android platform into my cordova 2.5 project tree, here is what I get:

      [MacBook-Pro-de-Philippe-Lang crfr]$ cordova platform add ios android
      [Error: An error occured during creation of android sub-project. cp: /opt/local/lib/node_modules/cordova/lib/cordova-android/framework/assets/www/cordova-2.5.0.js: No such file or directory
      An unexpected error occurred: cp "$BUILD_PATH"/framework/assets/www/cordova-$VERSION.js "$PROJECT_PATH"/assets/www/cordova-$VERSION.js exited with 1
      Deleting project...
      ]

      A closer look at this showed me that the needed file is actually here:

      /opt/local/lib/node_modules/cordova/lib/cordova-android/framework/assets/js/cordova-android.js

      Attachments

        Activity

          People

            filmaj Filip Maj
            plang Philippe Lang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: