1

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

[INFO] 日志文件 = C:\Titanium\Workspace\HelloWorld\build.log [DEBUG] C:\Documents and Settings\xxx\Application Data\Titanium\mobilesdk\win32\3.0.0.GA\android\builder.py install 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,路径= 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] 检测到模块 app,路径 = C:\Documents and Settings\xxx\Application Data\Titanium\mobilesdk\win32\3.0.0.GA\android\modules\titanium-app.jar [DEBUG] 检测到模块 ui,路径 = 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] 检测到模块文件系统,路径 = C:\Documents和 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) 文件“C:\Documents and Settings\xxx\Application Data\Titanium\mobilesdk\win32\3.0.0.GA\android\android.py”中,第 170 行,在 build_modules_info 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 行,在 os.walk(self.project_dir, True, None, True) 中为 root、dirs、文件编译时:TypeError: walk() 最多接受 3 个参数(给定 4 个)

4

1 回答 1

0

I solved this issue by setting Environment Variable for JAVA_HOME and path. JAVA_HOME - C:\Java\jdk1.6.0_25 and path - C:\Java\jdk1.6.0_25\bin. Thanks...

于 2013-02-13T04:20:11.540 回答