[
https://issues.apache.org/jira/browse/CB-12640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15994260#comment-15994260
]
ASF GitHub Bot commented on CB-12640:
-------------------------------------
Github user fredgalvao commented on a diff in the pull request:
https://github.com/apache/cordova-docs/pull/702#discussion_r114470167
--- Diff: www/_posts/2017-05-04-android-release.md ---
@@ -0,0 +1,33 @@
+---
+layout: post
+author:
+ name: Fil Maj
+ url: https://twitter.com/filmaj
+title: "Cordova Android 6.2.3 Released!"
+categories: announcements
+tags: news releases
+---
+
+We are happy to announce that `Cordova Android 6.2.3` has been released!
This patch release _actually_ adds support for the Android SDK Tools v26 and
newer. Unfortunately, we forgot to include these changes in the 6.2.2 release.
+
+We strongly recommend upgrading to this version if you are using the
latest Android SDK Tools. Older versions of `cordova-android` do not work with
the latest Android SDK Tools!
+
+To upgrade:
+
+ npm install -g cordova
+ cd my_project
+ cordova platform update [email protected]
+
+To add it explicitly:
+
+ cordova platform add [email protected]
+
+This release will have to be explicitly added until the upcoming
`cordova@7` release, where it will be pinned as the default android platform.
+
+<!--more-->
+## What's new in Android
+
+* [CB-12640](https://issues.apache.org/jira/browse/CB-12640) better
handling of unrecognized commands on **windows**.
+* [CB-12640](https://issues.apache.org/jira/browse/CB-12640) flipped avd
parsing logic so that it always tries to use `avdmanager` to retrieve avds
first, then falls back to `android` command if `avdmanager` cannot be found.
+* [CB-12640](https://issues.apache.org/jira/browse/CB-12640) support for
`android sdk tools 26.0.1`.
--- End diff --
Is it expected for all three of these links to be the same?
> listing targets with cli scripts does not work with v26 of android sdk tools
> ----------------------------------------------------------------------------
>
> Key: CB-12640
> URL: https://issues.apache.org/jira/browse/CB-12640
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 6.2.1
> Reporter: Filip Maj
> Assignee: Filip Maj
>
> Another Android SDK Tools release, another new problem! The {{android}}
> command is back and has completely different behaviour from SDK Tools 25.3.x.
> It now:
> a) prints out a deprecation warning
> b) does not accept {{list targets}} (must be {{list target}}) as a command
> c) does not print out an error message telling users to use {{avdmanager}}
> or {{sdkmanager}}
> In 25.3.x, {{android}} would exit with a non-zero exit code and print out an
> error message saying the command is no longer available.
> In 25.2.x and below, {{android}} was the go-to command for all things
> android-related.
> The [existing code for listing
> targets|https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/android_sdk.js]
> currently follows this flow:
> 1. Run {{android}} to list targets. If that works, parse targets out and exit.
> 2. If {{android}} fails with a non-zero exit code and a particular error
> message (the one that would be output in 25.3.x version of the tools),
> leverage {{sdkmanager}}, parse its output for installed targets.
> [~bowserj] brought up a good point to just use {{avdmanager list target}}
> instead of {{sdkmanager}} - it maintains the same output format for target
> listing as the old {{android}} tool does, which should allow us to remove the
> [code we have in place to convert {{sdkmanager}} output to the old
> {{android}} output
> format|https://github.com/apache/cordova-android/blob/master/bin/templates/cordova/lib/android_sdk.js#L107].
>
> Another solid [~bowserj] piece of advice is to try to use the {{avdmanager}}
> tool first before falling back to {{android}}.
> I will attempt to implement both suggestions above, and add test cases
> leveraging output fixtures from the various Android SDK Tool versions.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]