`
rensanning
  • 浏览: 3518768 次
  • 性别: Icon_minigender_1
  • 来自: 大连
博客专栏
Efef1dba-f7dd-3931-8a61-8e1c76c3e39f
使用Titanium Mo...
浏览量:37594
Bbab2146-6e1d-3c50-acd6-c8bae29e307d
Cordova 3.x入门...
浏览量:604673
C08766e7-8a33-3f9b-9155-654af05c3484
常用Java开源Libra...
浏览量:678549
77063fb3-0ee7-3bfa-9c72-2a0234ebf83e
搭建 CentOS 6 服...
浏览量:87585
E40e5e76-1f3b-398e-b6a6-dc9cfbb38156
Spring Boot 入...
浏览量:400069
Abe39461-b089-344f-99fa-cdfbddea0e18
基于Spring Secu...
浏览量:69136
66a41a70-fdf0-3dc9-aa31-19b7e8b24672
MQTT入门
浏览量:90658
社区版块
存档分类
最新评论

Titanium的常见错误和对策

阅读更多
本文会不断更新中!

[ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again
-----关闭Titanium后再启动

[ERROR] Script Error = Result of expression 'Titanium.Database' [undefined] is not an object. at app.js (line 1).
-----Clean工程后再启动

[ERROR] Error generating R.java from manifest
-----修正Application Id,必须符合FQDN(Fully Qualified Domain Name, 含义是完整的域名),不能有非字符。(Test -> com.example.test)。
     appid中不能包含appcelerator,titanium等官方相关的词语。

[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
・・・・・・・・・・
[ERROR] UnicodeDecodeError: 'utf8' codec can't decode byte 0x82 in position 142: unexpected code type

-----把文件的编码改为"UTF-8"

[ERROR] Failed installing com.appcelerator.kitchensink: pkg: /data/local/tmp/app.apk
[TRACE] Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

-----更新SDK版本(建议2.2以上),选择Google APIs

[ERROR] ....../strings.xml:3: error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute?
-----把String.xml中的“%d + %d = %d”改为“%1$d + %2$d = %3$d”

[ERROR] JDK version 'javac' is not recognized as an internal or external command
-----把%JAVA_HOME%\bin放入path环境变量中

[ERROR]Code Sign error: The identity ‘iPhone Developer: ‘ doesn’t match any valid certificate/private key pair in the default
-----provisioning profile做的有问题,iOS Provisioning Portal中作成profile时选择Development而不是Distribution

[ERROR] Analytics error sending request: The request timed out
[ERROR] Will re-queue analytics

-----删除build/iphone再试

[TRACE] E/TiHttpClient( 1151): java.net.UnknownHostException: Host is unresolved: xxxxxxx
-----启动emulator时加参数'-dns-server 8.8.8.8'

[DEBUG] D:\android-sdk-windows\tools\emulator.exe -avd titanium_5_HVGA -port 5560 -sdcard "C:\Documents and Settings\RenSanNing\.titanium\titanium_5_HVGA.sdcard" -logcat *:d,* -no-boot-anim -partition-size 128
invalid command-line parameter: C:\Documents.
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information
[DEBUG] signal caught: 3
[DEBUG] calling emulator kill on 13360
ERROR: The process "13360" not found.

-----通过以下命令在外部启动模拟器后,再在Titanium Studio中启动一次即可。
emulator.exe -avd titanium_5_HVGA -port 5560

"Could not locate the Android SDK at a given path" in Preferences
-----下载Android 2.1 API 7 或 Google APIs Android API 7 打开「Window→Preferences→Aptana Studio→Titanium」设置Android SDK。
关于这个问题Titanium Compatibility Matrix中说的很清楚,如图:


Distribute Android marketplace为APK签名是出错
[ERROR] Unable to open 'F:\_workspace_titanium\_test_mobile2\_sign\_test_mobile2.apk' as zip archive
[ERROR] System Error while compiling Android classes.dex

-----确认密码,别名等信息是否跟keystore一致,具体步骤参考通过Titanium Studio为Android APK签名

[ERROR] JDK version 1.7.0_02 detected, but 1.6 is required
-----安装JDK1.6版本,具体可以查看源码C:\Documents and Settings\$user_name$\Application Data\Titanium\mobilesdk\win32\1.8.2\android\prereq.py





  • 大小: 17.7 KB
分享到:
评论
4 楼 annqilee 2012-03-23  
还是不可以
3 楼 rensanning 2012-03-23  
Titanium默认的keystore试试好不好用:
path:$TitaniumSDK_HOME$\mobilesdk\win32\1.8.2\android\dev_keystore
password:tirocks
alias:tidev

TitaniumSDK_HOME默认是:C:\Documents and Settings\#user_name#\Application Data\Titanium\当然也可以指定到其他目录下。
2 楼 rensanning 2012-03-23  
检查一下你的keystore alias和distribute时的是否一致。
1 楼 annqilee 2012-03-23  
我在distribute成android的时候,先在keytools里生成了keystore,然后distribute Android marketplace,这个时候报了错误,知道怎么解决吗?

错误:
[ERROR] Unable to open 'F:\_workspace_titanium\_test_mobile2\_sign\_test_mobile2.apk' as zip archive
[ERROR] System Error while compiling Android classes.dex

相关推荐

Global site tag (gtag.js) - Google Analytics