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

Create Script is incorrect, and creates issues when creating new app

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.5.0
    • None
    • cordova-android
    • Linux

    Description

      When creating a new app for Android, lines 98 and 99 are as follows:
      TARGET=$("$ANDROID_BIN" list targets | grep id: | tail -1 | cut -f 2 -d ' ' )
      API_LEVEL=$("$ANDROID_BIN" list target | grep "API level:" | tail -n 1 | cut -f 2 -d ':' | tr -d ' ')

      The "Getting Started" Guide says we should create a path to "/somedirectory/android_sdk/tools" and "/somedirectory/android_sdk/platform-tools"
      However, we get an error that shows that "/somedirectory/android_sdk/tools" is a directory.

      Lines 98 and 99, and perhaps others that use "$ANDROID_BIN" should actually be "$ANDROID_BIN"/android to run the actual "android" tool.
      Since "$ANDROID_BIN" list target translates to: /somedirectory/android_sdk/tools list target and will not run.
      But "$ANDROID_BIN"/android list target translates to: /somedirectory/android_sdk/tools/android list target and WILL run.

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            tjholmes66 Thomas Holmes Jr.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified