I’m using Ubuntu 12.04 (x64) with java 6 (as titanium requires), and as title says I cannot build Android application to test it on emulator. I keep getting this error
[ERROR] Application Installer abnormal process termination. Process exit value was 1
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "/home/irmantas/.titanium/mobilesdk/linux/2.1.0.GA/android/builder.py", line 2206, in <module>
[ERROR] s.build_and_run(False, avd_id, debugger_host=debugger_host)
[ERROR] File "/home/irmantas/.titanium/mobilesdk/linux/2.1.0.GA/android/builder.py", line 2037, in build_and_run
[ERROR] launched, launch_failed = self.package_and_deploy()
[ERROR] File "/home/irmantas/.titanium/mobilesdk/linux/2.1.0.GA/android/builder.py", line 1569, in package_and_deploy
[ERROR] self.keystore_alias])
[ERROR] File "/home/irmantas/.titanium/mobilesdk/linux/2.1.0.GA/android/run.py", line 36, in run
[ERROR] process = subprocess.Popen(args, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
[ERROR] File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
[ERROR] errread, errwrite)
[ERROR] File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
[ERROR] raise child_exception
[ERROR] OSError: [Errno 2] No such file or directory
For me, it turned out to be a java problem. The “No such file or directory” turned out to be jarsigner. To remedy the problem, borrowing from this information https://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7 I entered the following
This fixed the problem immediately