Cordova platform update android@7.1.0 problem

i try to update cordova platform android version to 7.1.0.

i follow the way that remove platform android and add platform android@7.1.0.
however, when i add platform android @7.1.0

cordova platform version android shows like this.

Installed platforms:
android
ios 4.5.4
Available platforms:
android 7.1.0

and also there is only “bin” folder in android folder.

i try to update this way “cordova platform update android” but it does not work.

please tell me how to update cordova platform android.

Thanks.

cordova platform update has been removed, you need to remove existing platform and add the new one.

ionic cordova platform remove android
ionic cordova platform add android@7.1.0

1 Like

i already try to do that one.
after that, cordova platform version android shows like this.

Installed platforms:
android
ios 4.5.4
Available platforms:
android 7.1.0

there is no version of android and also there is only “bin” folder in android folder.

Also, it shows this messages.
Using cordova-fetch for cordova-android@7.1.0
(node:1273) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): [object Object]
(node:1273) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Currently, this is my ionic info.
cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.0
Cordova Platforms  : android 6.3.0 ios 4.5.4
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
ios-deploy        : 1.9.2
ios-sim           : 6.0.0
Node              : v8.10.0
npm               : 5.6.0
OS                : macOS High Sierra
Xcode             : Xcode 9.2 Build version 9C40b

Me too min2kor, i have found only this : https://ionic.zendesk.com/hc/en-us/articles/360000020508-Android-builds-with-cordova-android-7-0-0-failing