Error in trying to add ios and android platforms


#1

Hi guys, I’m looking to add a splash screen and icon to my ionic project but in the ‘ionic lab’ emulator I cant see the icon obviously but I’m also not sure the splash screen is showing.
I’ve tried to add the ios and android platforms re: different tutorials (ionic cordova platform add) and each time i receive an error which I’ve attached below.
Any ideas?
Thanks guys.

(node:25276) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): CordovaError: Platform android already added.
(node:25276) [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.


#2

Also, i know it says android already installed in that erroe, BUT, 2 lines later it gives this message.

Platform android not detected. Would you like to install it?

its an endless loop.


#3

try removing both platforms: ionic cordova platform remove ios
then adding it back in.

You also might want to check the version of cordova you have, and possibly updating it.