There are many questions about problems with running the "cordova add platform android" command. I tried every targeted solution and none of them helped me.
Error message :
~/sandbox/hello$ cordova platform add android Creating android project... /home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:126 throw e; ^ Error: Please install Android target 19 (the Android newest SDK). Make sure you have the latest Android tools installed as well. Run "android" from your command-line to install/update any missing SDKs or tools. at /home/acras/.cordova/lib/android/cordova/3.5.0/bin/lib/check_reqs.js:80:29 at _fulfilled (/home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:798:54) at self.promiseDispatch.done (/home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:827:30) at Promise.promise.promiseDispatch (/home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:760:13) at /home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:574:44 at flush (/home/acras/.cordova/lib/android/cordova/3.5.0/bin/node_modules/q/q.js:108:17) at process._tickCallback (node.js:415:13) Error: /home/acras/.cordova/lib/android/cordova/3.5.0/bin/create: Command failed with exit code 8 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:743:16) at Process.ChildProcess._handle.onexit (child_process.js:810:5)
I did what tells me the error message (run android and installed all the packages), but the error persists.
PATH : Home SDK for Android, tools and platform tools are on the way
In the platforms folder inside android sdk, I only have android-20 and android-L files.
I think if I add android-19 OR make a cord, I want android-20 to solve my problem. What to do to achieve both options?
thanks
android cordova
Ricardo acras
source share