gpt4 book ai didi

android - 无法构建 Titanium Android 应用程序以在模拟器中进行测试

转载 作者:行者123 更新时间:2023-11-29 22:03:58 24 4
gpt4 key购买 nike

我正在使用 Ubuntu 12.04 (x64) 和 Java 6(因为钛需要),正如标题所说,我无法构建 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

最佳答案

对我来说,这是一个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

这立即解决了问题

关于android - 无法构建 Titanium Android 应用程序以在模拟器中进行测试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11277438/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com