0
[ERROR] Application Installer abnormal process termination. Process exit value was 1
[INFO] logfile = C:\Documents and Settings\Administrator\My Documents\Titanium_Studio_Workspace\Todo List\build.log
[DEBUG] C:\Documents and Settings\Administrator\Application Data\Titanium\mobilesdk\win32\3.0.2.GA\android\builder.py simulator Todo List E:\New SDK C:\Documents and Settings\Administrator\My Documents\Titanium_Studio_Workspace\Todo List com.appcelerator.sample.todo 7 WVGA854
Traceback (most recent call last):
  File "C:\Documents and Settings\Administrator\Application Data\Titanium\mobilesdk\win32\3.0.2.GA\android\builder.py", line 2340, in <module>
    builder = Builder(project_name,sdk_dir,project_dir,template_dir,app_id)
  File "C:\Documents and Settings\Administrator\Application Data\Titanium\mobilesdk\win32\3.0.2.GA\android\builder.py", line 355, in __init__
    self.set_java_commands()
  File "C:\Documents and Settings\Administrator\Application Data\Titanium\mobilesdk\win32\3.0.2.GA\android\builder.py", line 399, in set_java_commands
    commands = java.find_java_commands()
  File "C:\Documents and Settings\Administrator\Application Data\Titanium\mobilesdk\win32\3.0.2.GA\android\java.py", line 61, in find_java_commands
    java_home = os.path.dirname(os.path.dirname(self.javac))
NameError: global name 'self' is not defined

注意:当我在钛工作室运行简单的应用程序时,它会抛出这个错误。我对钛完全陌生。所以伙计们,请帮我解决这个问题。

4

1 回答 1

2

似乎环境变量 JAVA HOME 不存在。该错误表示无法调用 javac,因为未设置“self”。在这种情况下,'self' 应该是 java home。

http://docs.appcelerator.com/titanium/latest/#!/guide/Setting_up_Titanium_Studio

http://docs.appcelerator.com/titanium/latest/#!/guide/Software_Locations_and_Environment_Variables

于 2013-02-20T20:19:45.560 回答