<!--
Before creating an issue, please take a look at 
http://cordova.apache.org/contribute/contribute_guidelines.html, and ensure you 
are creating your issue in the correct repository.

Please only report issues with the website and documentation here. Fill out the 
template below with as much detail as possible to help us to solve your issue.
-->

**Issue Type**
[X] Bug
[ ] Feature Request

**Priority**
[ ] Minor <!-- very specific or only affects a few people -->
[X] Major <!-- important and impacts many people -->
[ ] Critical <!-- Bugs (not features) that block the main function of a 
component and affect a large number of people -->
[ ] Blocker <!-- Catastrophic bugs that prevent projects from building or cause 
basic projects to crash immediately -->

**Environment**
* OS: Android
* Browser: N/A

**Description**
<!--
If this is a bug, outline how to reproduce it as clearly as possible.
If this is a feature request, describe in detail how it would work.
-->

When reading the documentation [on the Android platform support in 
Cordova](https://github.com/apache/cordova-docs/blob/master/www/docs/en/dev/guide/platforms/android/index.md),
 it says that 7.X.X supports API level up to 27.

> cordova-android Version | Supported Android API-Levels | Equivalent Android 
> Version
> ------------------------|------------------------------|-----------------------------
> 7.X.X                   | 19 - 27                      | 4.4 - 8.1
> 6.X.X                   | 16 - 26                      | 4.1 - 8.0.0
> 5.X.X                   | 14 - 23                      | 4.0 - 6.0.1
> 4.1.X                   | 14 - 22                      | 4.0 - 5.1
> 4.0.X                   | 10 - 22                      | 2.3.3 - 5.1
> 3.7.X                   | 10 - 21                      | 2.3.3 - 5.0.2

However, when I tried to use it, it didn't work, failing with "Cannot read 
property 'semver' of null" in platforms/android/cordova/lib/emulator.js.

The problem is that "cordova platform add android" (for cordova 8.0.0, the 
latest version) installs cordova-android 7.0.0, which doesn't include support 
for API level 27.

According to the documentation, [p"every release of cordova CLI pins a version 
for each 
platform"](https://cordova.apache.org/docs/en/latest/reference/cordova-cli/index.html#cordova-platform-command),
 which means that the upper limit in the above table is often misleading.


[ Full content available at: https://github.com/apache/cordova-docs/issues/879 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to