[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
注意:当我在钛工作室中运行简单的应用程序时,它会抛出此错误。我完全是钛的新人。所以,请帮助我解决这个问题。
答案 0 :(得分: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