钛构建失败,或模仿Android应用程序 [英] Titanium fails to build or emulate android application

查看:171
本文介绍了钛构建失败,或模仿Android应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚安装和配置钛Studio和它的依赖,开发我的Andr​​oid应用程序,但没有一个应用程序,甚至钛的示例应用程序将无法在模拟器启动。
我可以看到移动网络preVIEW 在浏览器中,但是当我尝试 Android模拟器我得到了在控制台下面的错误

I just installed and configured Titanium Studio and it's dependencies to develop my Android applications but none of the applications even the sample app of titanium won't start in emulator.
I can see Mobile Web Preview in browser but when I try Android Emulator I get the following error in Console:

[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模拟器打开了,一切看起来找到,但我的应用程序编译失败。

Android emulator opens up and everything looks find but my application fails to build.

我发现<一href="https://wiki.appcelerator.org/display/tis/Errors+Building+Titanium+Projects#ErrorsBuildingTitaniumProjects-Builderrorinconsoleoutput"相对=nofollow>这个页面并没有复制编译命令并手动运行它是这样的:

I found this page and did copy the compile command and manually run it like this:

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给了我这个错误:

but python gives me this error:

File "c:\Users\Administrator\AppData\Roaming\npm\titanium.CMD", line 1
:: Created by npm, please don't edit manually.
^
SyntaxError: invalid syntax

我是什么做错了吗?在哪里roblem?

What am I doing wrong? Where is the roblem?

其他信息:
我使用钛工作室(编译:3.1.0.201304151600)的最新版本,我的Windows Server 2008 R2上;
我有的node.js NPM node.acs 蟒蛇安装在我的系统环境变量是正确的工作;
我的Andr​​oid SDK为的Andr​​oid 2.2 的android-17 版本。

Additional Info:
I'm using latest version of Titanium Studio (build: 3.1.0.201304151600) on my Windows Server 2008 R2;
I have node.js, npm, node.acs, python installed on my system and environmental variables are correct and working;
I have Android SDK for both android-2.2 and android-17 versions.

推荐答案

在搜索和经历了太多类似的问题寻求答案没有几个小时,我通过自己的固定它。
对于大家谁正面临着开始错误[错误]错误:多个模拟器钛工作室,这个问题可能是由于以下原因之一:

After hours of searching and seeking through too many similar problems without answers, I fixed it by myself.
For everyone who is facing errors starting with [ERROR] error: more than one emulator in Titanium Studio, the problem can be because of one of the following reasons:

  • 您必须连接到计算机的Andr​​oid设备
  • 您有一个Android模拟器应用程序,如 BlueStacks

我的错误是因为在后台运行BlueStacks的。

My error was because of BlueStacks running in background.

这篇关于钛构建失败,或模仿Android应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆