PhoneGap Build Problem

PhoneGap Build Problem

offline
  • Pridružio: 15 Jun 2015
  • Poruke: 2

Napisano: 28 Jun 2015 18:27

Poceo sam sa koriscenjem PhoneGap-a, npravio sam jednu apikaciju i sada imam problem kada zeim da je kompajliram.
Imam instaliran i konfigurisan Android SDK i kada pokusam da kompajliram u konzoli mi se ispise:
Citat:miljan@Miljan-PC:~/Desktop/HelloWorld$ sudo phonegap prepare android
[phonegap] executing 'cordova platform add --save android'...
[phonegap] completed 'cordova platform add --save android'
[phonegap] executing 'cordova prepare android'...
[phonegap] completed 'cordova prepare android'
miljan@Miljan-PC:~/Desktop/HelloWorld$ sudo phonegap build android
[phonegap] executing 'cordova build android'...
cp: no such file or directory: /home/miljan/Desktop/HelloWorld/icon.png


Running command: /home/miljan/Desktop/HelloWorld/platforms/android/cordova/build

[Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.]

ERROR building one of the platforms: Error: /home/miljan/Desktop/HelloWorld/platforms/android/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project

Error: /home/miljan/Desktop/HelloWorld/platforms/android/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134: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)

miljan@Miljan-PC:~/Desktop/HelloWorld$

Kada pokrenem phonegap serve i pokrenem PhoneGap Server aplikaciji mogu da pristupim sa tableta preko PhoneGap aplikacije gde ista savrseno radi.

Dopuna: 28 Jun 2015 18:30

P.S. Koristim Xubuntu



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
Ko je trenutno na forumu
 

Ukupno su 1017 korisnika na forumu :: 65 registrovanih, 8 sakrivenih i 944 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3028 - dana 22 Nov 2019 07:47

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: A.R.Chafee.Jr., AleksaRadojicic, amaterSRB, Apok, Areal84, arsa, awathorn, babaroga, babble, Cobi026, DENIRO, draggan, Duh sa sekirom, Dusko Nikolin, FOX, Georgius2, Jester, JOntra, kosticmilanko, krauterbox, Krstić, Kubovac, KUZMAR, lacko, Leonardo, MarKhan, Metanoja, Milan Rajkovic, Milos ZA, MiroslavD, Miskohd, Mixelotti, mnn2, mrmr, nebojsag, nikoladgajic, Nomenklatura, nuke92, pedja63, RADOVAN.S, renoje2, repac, rkekoke, rovac, S-lash, SAA fan, sasa.zoric, Sima zna, Sirius, slonic_tonic, soonne, tamburski, TheProfessional, Toni, vathra, Vlad000, vlvl, voja64, VP3987, vrag81, Wrangler2, x9, Zandar2, zukara, |_MeD_|