代码改变世界

Titanium Studio

2011-06-14 23:15  hbb  阅读(2012)  评论(2编辑  收藏  举报

目前的TS碰到mobileSDK1.7+的,就不认android sdk了。报错 Could not locate the Android SDK at the given path

用命令行跑了一下

titanium run --platform=android --android=<the-path-of-android-sdk>

发现报错是因为没装 android sdk 2.1 API 7......实在是坑爹啊。

另外,千万别装eclipse plugin,改的太凶残了,连启动文件都给你改了=-=

不过,mobileSDK1.7开始的fast dev for android,这个不错,不用每次蛋疼得等那个模拟器安装apk。

只要把titanium.py加入环境变量中,然后cd到项目目录下,运行命令

titanium fastdev start &

只要30分钟不闲置,就可以快速开发android程序(超过30分钟会自动stop)——只要退出再进入程序就更新了,除非你改manifest这种配置文件...
不过这样子debug是不会重新生成apk,这点要注意下。当你debug完了,想传个apk到手机上,结果装好运行发现是旧的...orz

总之,Titanium的文档还是挺全面的,问答式的FAQ也确实有帮助。

http://builds.appcelerator.com.s3.amazonaws.com/index.html

http://developer.appcelerator.com/apidoc/mobile/latest

http://preview.appcelerator.com/studio/

我的flash时代告一段落,今后开始研究titanium
http://faseer.sinaapp.com/