从Titanium运行HelloWorld应用程序

时间:2013-02-11 10:59:35

标签: android titanium

我对Titanium很新。我在Titanium上创建了一个HelloWorld应用程序。并尝试在连接到我的计算机的Android设备上运行它。但是当我尝试在设备上运行应用程序时,它会显示一些错误,例如

  

[INFO] logfile = C:\ Titanium \ Workspace \ HelloWorld \ build.log   [DEBUG] C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ builder.py安装HelloWorld C:\ AndroidSDk \ android-sdk-windows C:\ Titanium \ Workspace \ HelloWorld com.titanium.helloworld 1   [DEBUG]检测到模块分析,路径= C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ modules \ titanium-analytics.jar   [DEBUG]检测到模块android,path = C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ modules \ titanium-android.jar   [DEBUG]添加必需的库:jaxen-1.1.1.jar   [DEBUG]添加所需的库:ti-commons-codec-1.3.jar   [DEBUG]添加必需的库:kroll-common.jar   [DEBUG]添加所需的库:titanium.jar   [DEBUG]检测到模块应用,路径= C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ modules \ titanium-app.jar   [DEBUG]检测到模块ui,path = C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ modules \ titanium-ui.jar   [DEBUG]添加所需的库:android-support-v4.jar   [DEBUG]检测到模块文件系统,path = C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ modules \ titanium-filesystem.jar   [DEBUG]检测到模块媒体,路径= C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ modules \ titanium-media.jar   [DEBUG]检测到模块区域设置,路径= C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ modules \ titanium-locale.jar   Traceback(最近一次调用最后一次):     文件“C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ builder.py”,第2324行,       builder = Builder(project_name,sdk_dir,project_dir,template_dir,app_id)     文件“C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ builder.py”,第362行, init       android_creator.create(parent_dir,project_dir = self.top_dir,build_time = True)     在创建文件“C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ android.py”,第344行       self.build_modules_info(resource_dir,app_bin_dir,include_all_ti_modules = include_all_ti_modules)     在build_modules_info中的文件“C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ android.py”,第170行       compiler.compile(compile_bytecode = False,info_message = None)     文件“C:\ Documents and Settings \ xxx \ Application Data \ Titanium \ mobilesdk \ win32 \ 3.0.0.GA \ android \ compiler.py”,第271行,在编译中       对于root,dirs,os.walk中的文件(self.project_dir,True,None,True):   TypeError:walk()最多需要3个参数(给定4个)

1 个答案:

答案 0 :(得分:0)

我通过为JAVA_HOME和路径设置环境变量解决了这个问题。 JAVA_HOME - C:\ Java \ jdk1.6.0_25和路径 - C:\ Java \ jdk1.6.0_25 \ bin。感谢...