Cordova Build Error for Android -


i have been running through cordova tutorial installation , creating first app. after spending last few hours trying figure out have pretty reached dead end. i'm running ubuntu , trying build on android 4.0.0.

i have of files listed in error below already. in addition error 3 consecutive popups non-existent files say:

"cannot find file '/home/prawg/workspace/hello/list'"

"cannot find file '/home/prawg/workspace/hello/targets'"

"cannot find file '/home/prawg/workspace/hello/--compact'"

here error:

[error: please install android target: "android-22".

hint: open sdk manager running: /usr/local/bin/android require:

  1. "sdk platform" android-22
  2. "android sdk platform-tools (latest)
  3. "android sdk build-tools" (latest)]

error building 1 of platforms: error: /home/prawg/workspace/hello/platforms/android/cordova/build:

command failed exit code 2

you may not have required environment or os build project

error: /home/prawg/workspace/hello/platforms/android/cordova/build: command failed exit code 2

at childprocess.whendone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)

at childprocess.emit (events.js:98:17)

at maybeclose (child_process.js:766:16)

at process.childprocess._handle.onexit (child_process.js:833:5)

any on appreciated.

so after spending hours trying figure out reached solution.

when installed android did through android studio download. after installing, went sdk manger in ui , updated 3 files listed in error above. reason did not update in sdk $android_home path set /home/prawg/android/sdk

the solution follows:

i went $android_home directory - /home/prawg/android/sdk through terminal , used following command:

tools/android update sdk --no-ui 

from terminal of updates installed , when typed build command android there no issue.

maybe more android experience can elaborate on why case?


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -