我刚刚安装并配置了 Titanium Studio,它是开发我的 Android 应用程序的依赖项,但没有一个应用程序,即使是钛的示例应用程序也不会在模拟器中启动。
我可以Mobile Web Preview
在浏览器中看到,但是当我尝试时,我Android Emulator
在控制台中收到以下错误:
[INFO] Force including all modules...
[INFO] Compiling Javascript Resources ...
[INFO] Compiling localization files
[ERROR] error: more than one emulator
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR] File "C:\Users\Administrator\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 2528, in <module>
[ERROR] builder.build_and_run(False, avd_id, debugger_host=debugger_host, profiler_host=profiler_host)
[ERROR] File "C:\Users\Administrator\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 2285, in build_and_run
[ERROR] self.push_deploy_json()
[ERROR] File "C:\Users\Administrator\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 1954, in push_deploy_json
[ERROR] sdcard_available = self.wait_for_sdcard()
[ERROR] File "C:\Users\Administrator\AppData\Roaming\Titanium\mobilesdk\win32\3.1.0.GA\android\builder.py", line 1907, in wait_for_sdcard
[ERROR] if 'SDCARD READY' in output:
[ERROR] TypeError: argument of type 'NoneType' is not iterable
[ERROR] : Build process exited with code 1
[ERROR] : Project failed to build after 33s 353ms
Android 模拟器打开,一切看起来都找到了,但我的应用程序无法构建。
我找到了这个页面并复制了编译命令并像这样手动运行它:
python "c:\Users\Administrator\AppData\Roaming\npm\titanium.CMD" "--no-colors" "--no-prompt" "build" "--platform" "android" "--sdk" "3.1.0.GA" "--log-level" "trace" "--target" "emulator" "--android-sdk" "C:\Users\Administrator\Desktop\adt-bundle-windows-x86_64-20130219\sdk" "--avd-id" "2" "--avd-abi" "armeabi" "--avd-skin" "HVGA" "--skip-js-minify"
但是python给了我这个错误:
File "c:\Users\Administrator\AppData\Roaming\npm\titanium.CMD", line 1
:: Created by npm, please don't edit manually.
^
SyntaxError: invalid syntax
我究竟做错了什么?问题在哪里?
附加信息:
我在 Windows Server 2008 R2 上使用最新版本的 Titanium Studio(内部版本:3.1.0.201304151600);
我的系统上安装了node.js
, npm
, node.acs
,python
并且环境变量正确且有效;
我有两个版本android-2.2
的Android SDK。android-17