构建Android模拟器时的Titanium错误

时间:2012-04-16 07:48:29

标签: android titanium

我有:

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

Linux falcon 3.2.0-2-amd64 #1 SMP Sun Mar 4 22:48:17 UTC 2012 x86_64 GNU/Linux

Titanium Studio, build: 1.0.9.201202141208
(c) Copyright 2011 by Appcelerator, Inc.  All rights reserved.
Build: jenkins-titanium-rcp-master-138 (origin/master)
Date: 14 February 2012, 12:10:43

最新版本的android SDK安装,工具目录添加到我的路径和钛也配置。在钛内部,我已经尝试了从2.2到3开始的Google API,同样的错误发生了。我正在尝试运行示例Hello World应用程序。

Logfile initialized
[INFO] logfile = ~/Projects/Titanium/Hello World/build.log
[DEBUG] ~/.titanium/mobilesdk/linux/1.8.2/android/builder.py simulator Hello World ~/rootfs/android-sdk-linux ~/Projects/Titanium/Hello World com.me.com.hello.world 5 WVGA854 
[INFO] Building Hello World for Android ... one moment
[INFO] Titanium SDK version: 1.8.2 (02/23/12 17:46 59b3a90)
[DEBUG] Waiting for device to be ready ...
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR]   File "~/.titanium/mobilesdk/linux/1.8.2/android/builder.py", line 2083, in <module>
[ERROR]     s.build_and_run(False, avd_id, debugger_host=debugger_host)
[ERROR]   File "~/.titanium/mobilesdk/linux/1.8.2/android/builder.py", line 1727, in build_and_run
[ERROR]     self.wait_for_device('e')
[ERROR]   File "~/.titanium/mobilesdk/linux/1.8.2/android/builder.py", line 340, in wait_for_device
[ERROR]     devices = self.sdk.list_devices()
[ERROR]   File "~/.titanium/mobilesdk/linux/1.8.2/android/androidsdk.py", line 224, in list_devices
[ERROR]     raise Exception(err)
[ERROR] Exception: ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so' from /etc/ld.so.preload cannot be preloaded: ignored.
[ERROR] 

/etc/ld.so.conf.d/x86_64-linux-gnu.conf的内容

# Multiarch support
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu

[编辑]

Running android, adb, emulator, etc cause:
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so' from /etc/ld.so.preload cannot be preloaded: ignored.
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so' from /etc/ld.so.preload cannot be preloaded: ignored.

on cli。

关于这里可能出现什么问题的任何建议?

1 个答案:

答案 0 :(得分:0)

似乎,它无法检测设备(模拟器)本身。如果您尝试在设备上运行,请转到App Explorer,单击“在设备上运行”选项。或者,如果您正在尝试使用模拟器,请让应用程序首次启动模拟器,否则请检查DDMS是否已列出您的模拟器。如果没有,请杀死adb并尝试运行。因为,您的日志说,在实际启动应用程序之前,它没有进入下一步正确查找模拟器/设备...