Titanium无法构建或模拟Android应用程序
作者:互联网
我刚安装并配置了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模拟器打开,一切看起来都找不到,但我的应用程序无法构建.
我找到了this page并且复制了编译命令并手动运行它:
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
我究竟做错了什么? roblem在哪里?
附加信息:
我在Windows Server 2008 R2上使用最新版本的Titanium Studio(版本:3.1.0.201304151600);
我在我的系统上安装了node.js,npm,node.acs,python,环境变量正确且正常;
我有android-2.2和android-17版本的Android SDK.
解决方法:
经过几个小时的搜索和寻找太多类似的问题没有答案,我自己解决了.
对于因[ERROR]错误而面临错误的所有人:Titanium Studio中有多个仿真器,问题可能是由于以下原因之一:
>您的Android设备已连接到您的计算机
>你有像BlueStacks这样的Android模拟器应用程序.
我的错误是因为BlueStacks在后台运行.
标签:titanium-mobile,android,android-emulator,titanium 来源: https://codeday.me/bug/20190825/1722317.html