0

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.

enter image description here

Neeraj Jain
  • 7,643
  • 6
  • 34
  • 62

2 Answers2

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