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

Need to update android_sdk.js to Support Android 8.0

    XMLWordPrintableJSON

Details

    Description

      Currently I am working on a Cordova project and I am migrating to the new Android 8.0 emulator.
      Need to update android_sdk.js to add support for Android 8.0 emulator

      cordova-android / bin / templates / cordova / lib / android_sdk.js Line 53:
      module.exports.version_string_to_api_level =

      {     '4.0': 14,     '4.0.3': 15,     '4.1': 16,     '4.2': 17,     '4.3': 18,     '4.4': 19,     '4.4W': 20,     '5.0': 21,     '5.1': 22,     '6.0': 23,     '7.0': 24,     '7.1.1': 25 }

      ;

      This causes exception in emulator.js Line 210
      var project_target = check_reqs.get_target().replace('android-', '');
       
      I added '8.0': 26 in android_sdk.js and then it works.
      module.exports.version_string_to_api_level = {
          '4.0': 14,
          '4.0.3': 15,
          '4.1': 16,
          '4.2': 17,
          '4.3': 18,
          '4.4': 19,
          '4.4W': 20,
          '5.0': 21,
          '5.1': 22,
          '6.0': 23,
          '7.0': 24,
          '7.1.1': 25,

          '8.0': 26
      };

      Attachments

        1. android_sdk.js error.png
          41 kB
          Zhao Bin

        Issue Links

          Activity

            People

              bowserj Joey Robert Bowser
              sunday18 Zhao Bin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: