Titanium JIRA Archive
Appcelerator Community (AC)

[AC-868] Getting error while running the sample app for android environment

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2015-04-06T23:17:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAlloy, Titanium SDK & CLI
LabelsTCSupportTriage, android
ReporterUjjawal Kumar
AssigneeRadamantis Torres-Lechuga
Created2015-01-22T09:36:34.000+0000
Updated2016-03-08T07:37:09.000+0000

Description

I am new to titanium development, after installing the titanium sdk just tried to run a sample android project but getting the error :- C:\Users\ujjawalkumar\AppData\Roaming\npm\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:185 throw e; ^ TypeError: Bad argument at ChildProcess.spawn (child_process.js:936:24) at exports.spawn (child_process.js:736:9) at async.parallel.powershell (C:\ProgramData\Titanium\mobilesdk\win32\3.5.0.GA\node_modules\titanium-sdk\lib\windows.js:385:14) at C:\ProgramData\Titanium\mobilesdk\win32\3.5.0.GA\node_modules\async\lib\async.js:524:25 at C:\ProgramData\Titanium\mobilesdk\win32\3.5.0.GA\node_modules\async\lib\async.js:111:13 at Array.forEach (native) at _each (C:\ProgramData\Titanium\mobilesdk\win32\3.5.0.GA\node_modules\async\lib\async.js:32:24) at async.each (C:\ProgramData\Titanium\mobilesdk\win32\3.5.0.GA\node_modules\async\lib\async.js:110:9) at _parallel (C:\ProgramData\Titanium\mobilesdk\win32\3.5.0.GA\node_modules\async\lib\async.js:523:20) at async.parallel (C:\ProgramData\Titanium\mobilesdk\win32\3.5.0.GA\node_modules\async\lib\async.js:539:9) [ERROR] Application Installer abnormal process termination. Process exit value was 8 Why this error is coming and how to resolve this error ? Any help would be greatly appriciated

Comments

  1. Shuo Liang 2015-01-23

    Hi, Please run "ti setup check" in terminal, and provide the output please. Regards, Shuo
  2. Ujjawal Kumar 2015-01-23

    Hi, As i am new to titanium sdk, don't know how to run the "ti setup check". Will you please tell me how to check that ? And i am working on windows platform.
  3. Shuo Liang 2015-01-26

    Just open your command line, then run "ti setup check". It will tell you what kind of error you may have for configuration.
  4. Ujjawal Kumar 2015-01-27

    Below is the output that i got :- Enter ctrl-c at any time to quit. ──────────────────┤ Check Environment ├─────────────────── Node.js * node new version v0.10.36 available! (currently v0.10.33) * npm new version v2.4.1 available! (currently v1.4.28) Titanium CLI √ cli up-to-date (v3.4.1) Titanium CLI Dependencies √ async up-to-date (v0.2.10) √ colors up-to-date (v0.6.2) √ fields up-to-date (v0.1.23) √ humanize up-to-date (v0.0.9) √ jade up-to-date (v0.35.0) √ longjohn up-to-date (v0.2.4) √ moment up-to-date (v2.4.0) √ node-appc up-to-date (v0.2.14) √ optimist up-to-date (v0.6.1) √ request up-to-date (v2.27.0) √ semver up-to-date (v2.2.1) √ sprintf up-to-date (v0.1.5) √ temp up-to-date (v0.6.0) √ winston up-to-date (v0.6.2) √ wrench up-to-date (v1.5.8) Titanium SDK √ latest sdk installed (v3.5.0.GA) x selected sdk selected Titanium SDK "vundefined" is not installed Android Environment √ sdk installed (C:\android-sdk-win) ! tools untested version 24.0.2; may or may not work √ platform tools installed (v21.0.0) √ build tools installed (v21.1.2) √ adb installed C:\android-sdk-win\platform-tools\adb.exe √ android installed C:\android-sdk-win\tools\android.bat √ emulator installed C:\android-sdk-win\tools\emulator.exe √ mksdcard installed C:\android-sdk-win\tools\mksdcard.exe √ zipalign installed C:\android-sdk-win\build-tools\21.1.2\zipalign .exe √ aapt installed C:\android-sdk-win\build-tools\21.1.2\aapt.exe √ aidl installed C:\android-sdk-win\build-tools\21.1.2\aidl.exe √ targets installed (2 found) √ avds installed (1 found) √ ndk installed (undefined) √ ndk-build installed (undefined) Java Development Kit √ jdk installed (v1.7.0) √ java installed C:\Program Files\Java\jdk1.7.0_71\bin\java.exe √ javac installed C:\Program Files\Java\jdk1.7.0_71\bin\javac.exe √ keytool installed C:\Program Files\Java\jdk1.7.0_71\bin\keytool.exe √ jarsigner installed C:\Program Files\Java\jdk1.7.0_71\bin\jarsigner.exe Intelr Hardware Accelerated Execution Manager (HAXM) √ compatible √ installed Network √ online - no proxy server configured √ http request test √ https request test Directory Permissions √ home directory √ titanium config directory √ titanium sdk install directory √ temp directory ──────────────────────┤ Main Menu ├─────────────────────── 1) quick Quick Setup 2) check Check Environment 3) user User Information 4) app New App Defaults 5) network Network Settings 6) cli Titanium CLI Settings 7) sdk Titanium SDK Settings 8) android Android Settings 9) wp8 Windows Phone 8 10) exit Exit Where do you want to go?
  5. Shuo Liang 2015-01-28

    HI, It seems something wrong with Android tool, would you please provide full console log when you run app, as it may provide more info about the android error, remember to switch console mode to track ( on the up right conner of console window). On the other hand, I recommend you the read our doc for studio, that will be helpful to address most of problem. http://docs.appcelerator.com/platform/latest/#!/guide/Installation_and_Configuration Regards, Shuo
  6. Mauro Parra-Miranda 2015-02-02

    Please follow the install guide for your Android SDK: http://docs.appcelerator.com/titanium/3.0/#!/guide/Installing_the_Android_SDK

JSON Source