I just updated cordova via sudo npm install -g cordova
Now i have the problem, that everytime when i try to build the android app with ionic run android --device
i get
Error during processing of action! Attempting to revert...
ERROR running one or more of the platforms: TypeError: Uh oh!
Invalid Version: undefined
You may not have the required environment or OS to run this project
or ionic build android
Error during processing of action! Attempting to revert...
Error: Uh oh!
Invalid Version: undefined
IOS is working fine so i think it's a problem with android?
Android SDK Tools: 24.3.4
Android SDK Platform-tools: 23.0.1
Android SDK Build-tools: 23.0.2
SDK: Android 5.1.1 (API 22)
The combo i have:
Cordova CLI: 5.4.1
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.10
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.7.0
ios-sim version: 4.1.1
OS: Mac OS X El Capitan
Node Version: v0.12.7
Xcode version: Xcode 7.1 Build version 7B91b
Depending on the version you are using:
I originally installed the latest but since it won't build my stuff, I installed 5, which incidentally, installs 5.4.1 and I was getting the same error.
Downgraded to 5.4.0 and it works just fine.
The file 'platforms.json' in the platforms folder is missing. Run the commands to remove platforms and add platforms.
Confirm this works for you.
That worked for me.
My system information: