无法生成要在emulator中测试的Android应用程序

无法生成要在emulator中测试的Android应用程序,android,titanium,Android,Titanium,我正在使用Ubuntu12.04(x64)和Java6(正如Tianium所要求的),正如标题所说,我无法构建Android应用程序在emulator上测试它。我一直在犯这个错误 [ERROR] Application Installer abnormal process termination. Process exit value was 1 [ERROR] Exception occured while building Android project: [ERROR] Traceback

我正在使用Ubuntu12.04(x64)和Java6(正如Tianium所要求的),正如标题所说,我无法构建Android应用程序在emulator上测试它。我一直在犯这个错误

[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
[ERROR]应用程序安装程序进程异常终止。进程退出值为1
[错误]生成Android项目时发生异常:
[错误]回溯(最近一次呼叫上次):
[错误]文件“/home/irmantas/.titanium/mobilesdk/linux/2.1.0.GA/android/builder.py”,第2206行,在
[错误]s.build_和_run(False,avd_id,debugger_host=debugger_host)
[错误]文件“/home/irmantas/.titanium/mobilesdk/linux/2.1.0.GA/android/builder.py”,第2037行,编译和运行中
[错误]已启动,启动失败=self.package\u和部署()
[错误]文件“/home/irmantas/.titanium/mobilesdk/linux/2.1.0.GA/android/builder.py”,第1569行,在包和部署中
[错误]self.keystore\u别名])
[错误]文件“/home/irmantas/.titanium/mobilesdk/linux/2.1.0.GA/android/run.py”,第36行,运行中
[ERROR]process=SUBSPROCESS.Popen(args,stderr=SUBSPROCESS.PIPE,stdout=SUBSPROCESS.PIPE)
[错误]文件“/usr/lib/python2.7/subprocess.py”,第679行,在_init中__
[错误]错误读取,错误写入)
[错误]文件“/usr/lib/python2.7/subprocess.py”,第1249行,在执行子进程中
[错误]引发子\u异常
[错误]操作错误:[Errno 2]没有这样的文件或目录

三种可能的解决方案:

…appcelerator.com/question/120519/emulator-is-crashing-expective

  • 检查adb是否可在工具和平台工具文件夹中访问
  • 检查app.js中是否没有有趣的编码
  • 使用android工具重新保存或删除钛AVD
  • 为了

    java版本

    你应该

    java版本“1.6.0_33” Java(TM)SE运行时环境(build 1.6.0_33-b03)
    Java HotSpot(TM)客户端虚拟机(构建20.8-b03,混合模式,共享)

    对我来说,这是一个Java问题。“没有这样的文件或目录”原来是jarsigner。为了解决这个问题,借用这些信息,我输入了以下内容

    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
    

    这立即解决了问题

    是的,这是Java问题,只是将版本更改为1.7,一切正常。谢谢,很抱歉迟到,请接受:/