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

Update `android-versions` npm dependency to support Android API 27.

    Details

    • Type: Task
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
      None
    • Flags:
      Patch

      Description

      The current version of cordova-android currently bundles (via package.json's bundledDependencies attribute) a version of the android-versions npm which doesn't support Android SDK level 27, which was officially released in the last month.

      This omission prevents the use of cordova run android --emulator -d if API level 27 is installed, which is the default SDK for a new installation of Android Studio. It also contributed to the error seen in CB-13571, though that will prevent the same error from occurring in the future if an additional SDK is released and not included in android-versions.

      While the latest version of android-versions (currently 1.3.0) does support level 27 (now, thanks to this recent commit), the fact that it is a so-called "bundled dependency" means the current version (1.2.1) is baked into the cordova-android installation tarball, and won't automatically respect the caret version range (`^1.2.1`) listed in cordova-android`s package.json, despite the lack of a package-lock.json (or otherwise).

      Bumping the version of android-versions in cordova-android's package.json to 1.3.0 will enable the emulator to work with API level 27 (even if there could be other reasons that API level 27 causes problems).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bowserj Joe Bowser
                Reporter:
                abernix Jesse Rosenberger
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: