I am now learning how to use PhoneGrap
but when I $ Phonegap Build android
This is what I got:
[phonegap] Android SDK environment detection ... [PhoneGap] using the local environment connecting the Android platform [PhoneGap] ... [Error] An error occurred during the creation of the Android sub-project. / Users / myord / cordoba / album / android / cordova / 3.3.0 / bean / annod_module / q / q.js: 126 e; ^ Error: "Android" command failed Make sure you have the latest Android SDK installed, and the "Android" command (inside the tool / folder) has been added in your way. _rejected at (/Users/myself/.cordova/lib/android/cordova/3.3.0) on / users / my home country / cordoba / lib / android / cordova / 3.3.0 / bin / lib / check_reqs.js: 85: 29 /bin/node_modules/q/q.js:808:24) In futures / users / masar / cordova / lib / android / cordova / 3.3.0 / bin / node_modules / q / q.js: 834: 30. Promise.promise.promiseDispatch (/Users/myself/.cordova/lib) on (/Users/myself/.cordova/lib/android/cordova/3.3.0/bin/node_modules/q/q.js:1079:31) /android/cordova/3.3.0/bin/node_modules/q/q.js:752:41) at / user / myre / cordova / lib / android / cordova / 3.3.0 / bin / node_modules / q / q js: On 574: 44 flush (/Users / Message / Cordova / Lib / Android / Cordova / 3.3.0 / bin / node_modules / q / q.js: 108: 17) on process. _colorbackback (node JS: 415: 13)
Any ideas?
PS:
I am noob with phonebaps, ruby and npm
This error is not found if the Android SDK is not installed correctly, Android SDK tools and platform-tools folders, anti and Java JDK should be added to the pat.
Adding the Android SDK to the path resolved the problem.
Comments
Post a Comment