I'm new to the ionic framework. I've already set the path of gradle and java on the Environmental variables on Windows 7. Kindly check the errors on the image below. Hope anyone can help me. Thanks.
Asked
Active
Viewed 161 times
0
-
Try posting your code into the question, instead of as a linked image - it's much easier to help if it's easy to read – Scransom Jun 18 '18 at 03:32
-
Thanks for the head up mob. I'll do it in my incoming concern. :) – Charles Alfonso Jun 18 '18 at 04:03
2 Answers
0
Use ionic cordova platform add android first and then your command.

Kul
- 198
- 1
- 11
-
First of all, Thank you for your feedback. But it says that Cordova:Error: Failed to fetch platform cordova-android@^6.4.0 Probably this is either a connection problem, or platform spec is incorrect. Error:cmd: Command failed with exit code ENOENT – Charles Alfonso Jun 18 '18 at 04:02
0
CordovaError: No Platform Added
The error clearly states that no platform is added, Please use the below command to add respective platforms
cordova platform add android/ios
Once the platform is successfully added then build .apk or .ipr file
cordova build android/ios

Neeraj Jain
- 7,643
- 6
- 34
- 62
-
First of all, Thank you for your feedback. But it says that Cordova:Error: Failed to fetch platform cordova-android@^6.4.0 Probably this is either a connection problem, or platform spec is incorrect. Error:cmd: Command failed with exit code ENOENT – Charles Alfonso Jun 18 '18 at 04:02
-
I think this [link](https://stackoverflow.com/questions/35451207/cordova-error-failed-to-fetch-platform-android) can help you further – Neeraj Jain Jun 18 '18 at 04:05