(I need Ionic Pro because I need the deploy services, and since Ionic deploy is closing at the end of the year, I need to upgrade to Ionic Pro, and Ionic Pro requires that ionic cordova thing apparently)
So, I managed to make it work finally… I will write those informations in case it can help other developpers.
first I deleted the package-lock.json as it contains outdated information.
By default, this new ionic cordova defaults cordova-android to 6.3.0, this creates compatibility problems, so I had to manually specify in package.json “cordova-android”: “6.2.3”, I have to specify it everytime I remove the platform since auto --save during platform remove with the new CLI removes this information.
after that, a shot of npm install will install the missing packages
after that, I had to manually download the archives of my plugins that would not download anymore for some reason, I unzipped them, put the folders into my project’s root, and reference them with plugin name=“myplugin” spec="./mypluginfolder" in config.xml and “myplugin”: “./mypluginfolder”, in package.json
after that I managed to install the platform correctly, I have it says target 25 during platform installation, hopefully this is a bug of the new CLI (great…) as it actually installs the correct target 22 platform.
after that a shot of ionic cordova run android --prod --debug (or release) detects the active emulators and correctly launches the app without errors (except for some ionic-cloud related stuff, I’ll dig into that in a moment)
No, this is actually the current version of Cordova CLI that does that (and that Ionic CLI uses in the background). You seem to also have update cordova manually. This never happens automatically. If you install an older version of Cordova you also get a older cordova-android (although with its bugs, of course).
Create a new topic for that issue with a copy of the output please so we can look at it.
I indeed have manually updated cordova in the process when I think about it, because I did by mistake an npm install -g ionic cordova since the new CLI is now ionic cordova, I thought I was installing the new ionic CLI, can be confusing.
sorry for the tone of my posts, an unstable project is hardly easy to deal with, thank you for the time you took to answer me.