Hi Friends,
I am new ionic framework. I have worked some sample app and try to build in android for learning. But i cant but to build successfully in android. i have received following error i have checked the environment variables my current environment variable is
C:\Users\ranjeet\AppData\Roaming\npm;
C:\Program Files\Java\jdk1.8.0_60;
C:\Users\ranjeet\AppData\Local\Android\android-sdk\platform-tools;
C:\Program Files\apache-ant-1.9.6
Error is :
Hint: Open the SDK manager by running: C:\Users\ranjeet\AppData\Local\Android\an
droid-sdk\tools\android.BAT
You will require:
1. "SDK Platform" for android-22
2. "Android SDK Platform-tools (latest)
3. "Android SDK Build-tools" (latest)]
ERROR building one of the platforms: Error: cmd: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 2
at ChildProcess.whenDone (C:\Users\ranjeet\AppData\Roaming\npm\node_modules\
cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:817:16)
at Process.ChildProcess._handle.zonexit (internal/child_process.js:211:5)
My ionic info is :
Cordova CLI: 5.3.3
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.1.0
Ionic CLI Version: 1.4.8
Ionic App Lib Version: 0.0.23
OS: Windows 8.1
Node Version: v4.1.1
Can anybody please help me on this. Thanks.