Anybody knows how to add platform in ionic with custom android target ? If I try this command :
ionic platform add android
It al
You should be able to see all the versions of platforms installed in your project with:
cordova platform list
Then you can remove the current version with:
cordova platform remove android
And install the version you want/need with: (in my case 6.1.1)
cordova platform add android@6.1.1
Source: cordova.apache.org documentation