You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2018/01/26 21:24:00 UTC

[jira] [Updated] (CB-13818) Need to update android_sdk.js to Support Android 8.0

     [ https://issues.apache.org/jira/browse/CB-13818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser updated CB-13818:
----------------------------
    Priority: Major  (was: Critical)

I'm not going to say this was critical because I couldn't reproduce it, but yeah, this did need to be done.  In the long run, we should use android-versions for this.

> Need to update android_sdk.js to Support Android 8.0 
> -----------------------------------------------------
>
>                 Key: CB-13818
>                 URL: https://issues.apache.org/jira/browse/CB-13818
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: cordova-android-7.0.0
>         Environment: Cordova 7.1.0
>  
>            Reporter: Zhao Bin
>            Assignee: Joe Bowser
>            Priority: Major
>              Labels: easyfix
>             Fix For: cordova-android-7.0.0
>
>         Attachments: android_sdk.js error.png
>
>
> 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
> {color:#5fdfff}var{color}{color:#dfdfdf} project_target {color}{color:#ff1f7f}={color}{color:#dfdfdf} check_reqs.{color}{color:#9fdf2f}get_target{color}{color:#dfdfdf}().{color}{color:#5fdfff}replace{color}{color:#dfdfdf}({color}{color:#dfdf7f}'android-'{color}{color:#dfdfdf}, {color}{color:#dfdf7f}''{color}{color:#dfdfdf});{color}
>  
> {color:#333333}I added '8.0': 26 in android_sdk.js and then it works.{color}
> {color:#333333}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,{color}
> {color:#333333}    '8.0': 26 
> };{color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org