2012-06-30 36 views
1

我正在使用Ubuntu 12.04(x64)和java 6(如鈦需求),並且標題顯示我無法構建Android應用程序以在模擬器上測試它。我不斷收到此錯誤無法構建Titanium 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 

回答

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 

這解決了這一問題立即

+0

是的,它是Java的問題,只是換了版本1.7和一切正常。謝謝,並遲到接受抱歉:/ – Irmantas

0

三種可能的解決方案爲您提供:

http://developer.appcelerator.com/question/86751/android-emulater-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工具來重新保存或刪除鈦AVD

對於

Java的版本

你應該得到

Java版本 「1.6.0_33」 的Java(TM )SE運行時環境(內部版本1.6.0_33-b03) Java HotSpot(TM)客戶端VM(版本20.8-b03,混合模式,共享)

相關問題