Cannot upload app to ionic view

I’ve been trying to upload my app to view.ionic.io and tried with many configurations but I cannot figure out how to do it correctly.

When I write $ionic upload, this is what get:

[WARN] Detected @ionic/cli-plugin-cordova in your package.json.

       As of CLI 3.8, it is no longer needed. You can uninstall it.

> ionic cordova prepare
[WARN] No Cordova platforms listed in config.xml. Nothing to prepare.

       You can save your installed platforms to config.xml with the ionic cordova platform save command.

This is my $ionic info

cli packages: (C:\Users\xjorg\Documents\csadmin\admin\node_modules)

    @ionic/cli-utils  : 1.8.1
    ionic (Ionic CLI) : 3.8.1

global packages:

    Cordova CLI : not installed
    Gulp CLI    : not installed globally

local packages:

    Cordova Platforms : android
    Ionic Framework   : ionic1 1.3.3

System:

    Node : v6.11.0
    npm  : 3.10.10
    OS   : Windows 10

You need to install the Cordova CLI and try again

Installed but still the same message when i write ionic upload.

Edit your platforms.json under your platforms folder.

{
    "android": "6.2.3"
}

Thank you @gaburbano for your reply, that was actually the problem, I had to install the latest version of android:

Cordova Platforms : android

was not working, so I had to install android": “6.2.3”, I have no idea why that is different.