2011-07-15 42 views
0

我安裝了android SDk並將adb.exe和AdbWinApi.dll文件複製到工具目錄中。運行hello world應用程序時出錯

當我運行我的hello世界應用程序時,我得到下面的錯誤。

plz幫助擺脫這個錯誤,並獲得模擬器運行。

在此先感謝。

[INFO] logfile = C:\TitaniumProjects\damosh\build.log 
[DEBUG] C:\ProgramData\Titanium\mobilesdk\win32\1.7.1\android\builder.py emulator damosh C:\Android\android-sdk C:\TitaniumProjects\damosh ssd 7 WXGA 
[INFO] Launching Android emulator...one moment 
[DEBUG] From: C:\Android\android-sdk\tools\emulator.exe 
[DEBUG] SDCard: C:\Users\suchi\.titanium\android2.sdcard 
[DEBUG] AVD ID: 7 
[DEBUG] AVD Skin: WXGA 
[DEBUG] SDK: C:\Android\android-sdk 
[DEBUG] C:\Android\android-sdk\platform-tools\adb.exe start-server 
[DEBUG] **C:\Android\android-sdk\tools\emulator.exe -avd titanium_7_WXGA -port 5560 -sdcard C:\Users\suchi\.titanium\android2.sdcard -logcat '*:d *' -no-boot-anim -partition-size 128 invalid command-line parameter: *'.** 
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 5300 
ERROR: The process "5300" not found. 

回答

0

嗨,Appcelerator的網站上有幾個建議。你試過了嗎?

鏈接:http://developer.appcelerator.com/question/125198/problem-with-emulator-in-android 鏈接:http://developer.appcelerator.com/question/123477/problem-with-space-in-filename#answer-214976

我嘗試所有這些,但沒有他們的工作對我來說。我做了什麼:

轉到Eclipse - >窗口 - >首選項 - >鈦工作室 - >鈦: - 確保您的android SDK路徑不包含任何空格。 - 確保你的鈦路徑也不包含任何空格 (在第六個字符後用〜或〜1或〜2替代)

我看到我的SD卡的路徑中包含一個空格:

[DEBUG] SDCard: 'C:\Users\Adis Corovic\.titanium\android2.sdcard' 

所以,我打開了builder.py:

C:\Users\Adis Corovic\AppData\Roaming\Titanium\mobilesdk\win32\1.7.2\android\builder.py 

線400我改變了這個:

self.sdcard 

到這一點:

"'" + self.sdcard.replace("Adis Corovic", "AdisCo~1") + "'", 

祝你好運!