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

cordova build android fails with [Error: Android SDK not found...]

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
    • Environment:

      Windows,
      ANDROID_HOME is not set
      PATH doesn't include Android SDK path

      Description

      1. In a batch command shell: set ANDROID_HOME= (ANDROID_HOME is not set)
      2. Ensure that PATH doesn't include Android SDK path
      3. cordova build android

      ACTUAL RESULTS: [Error: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.]

      EXPECTED RESULTS: No error. cordova-android has logic to detect ANDROID_HOME variable based on default installed locations on a machine.

      This is a regression with the check_reqs changes.

        Attachments

          Activity

            People

            • Assignee:
              vladimir.kotikov Vladimir Kotikov
              Reporter:
              vladimir.kotikov Vladimir Kotikov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: