1

我正在使用带有 java 6 的 Ubuntu 12.04 (x64)(根据钛的要求),正如标题所说,我无法构建 Android 应用程序来在模拟器上对其进行测试。我不断收到此错误

[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
4

2 回答 2

2

对我来说,它原来是一个java问题。“没有这样的文件或目录”原来是 jarsigner。为了解决这个问题,借用此信息https://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7我输入了以下内容

sudo update-alternatives --quiet --install /usr/bin/jarsigner jarsigner /usr/lib/jvm/jdk1.6.0_32/bin/jarsigner 100 --slave /usr/share/man/man1/jarsigner.1 jarsigner.1 /usr/lib/jvm/jdk1.6.0_32/man/man1/jarsigner.1

这立即解决了问题

于 2012-07-14T09:47:54.703 回答
0

三种可能的解决方案:

http://developer.appcelerator.com/question/86751/android-emulator-wont-launch-adbexe-doesnt-start http://developer.appcelerator.com/question/121286/error-running-projects-in-android -emulator ...appcelerator.com/question/120519/emulator-is-crashing-unexpectedly

  1. 检查是否可以在工具和平台工具文件夹中访问 adb
  2. 检查您的 app.js 中是否没有有趣的编码
  3. 使用 android 工具重新保存或删除 Titanium AVD

为了

java版本

你应该得到

java 版本 "1.6.0_33" Java(TM) SE Runtime Environment (build 1.6.0_33-b03) Java HotSpot(TM) Client VM (build 20.8-b03, 混合模式, 共享)

于 2012-07-13T13:47:37.940 回答