Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Can't get anything run on Windows XP but the standard android surface

Hi, I have spent two days now with installing and deinstalling Tit_Dev(1.2/1.4) and android (APIs1.6) on Windows XP (SP3).
I neither get helloWorld to run nor the kitchensink. In Tit_Dev Version 1.4, tracing of helloworld produces:

[TRACE] File "C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\Titanium\mobilesdk\win32\1.4.0\android\run.py", line 16, in run
[TRACE] print "[DEBUG] %s"%(" ".join(args))
[TRACE] TypeError: sequence item 0: expected string, NoneType found

Full tracing message: git clone git://gist.github.com/731308.git gist-731308

Switching to 1.2, HelloWorld cannot be executed, since there is no Android tab shown in the Run_Emulator of Tit_Dev1.2 (although 1.2 is defined for the project in the "edit"-tab).
Kitchensink can be executed, but in the result only the basic android surface with its contact, message and browser icons is shown.
Tracing shows the following in the end:

[TRACE] File "C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\Titanium\mobilesdk\win32\1.2.0\android\run.py", line 5, in run
[TRACE] print "[DEBUG] %s"%(" ".join(args))
[TRACE] TypeError: sequence item 0: expected string, NoneType found

Full tracing message: git clone git://gist.github.com/731311.git gist-731311

As far as I understand it, there are some problems with the user folder structure of Windows (all users etc).
Any PATH I can set to avoid it?

Thanks so much for your help after two disappointing days.

— asked December 6th 2010 by Henrik Brocke
  • android
  • folder
  • typeerror
  • windows
1 Comment
  • I had the exact same problem as I'm just test driving the Appcelerator for the first time.

    I just downloaded Titanium and got the exact same error. Based on the trace messages and some digging into the Python scripts of Titanium, the issue might be the following:

    Titanium scripts expect adb.exe to be present in C:\android-sdk\tools or c:\android-sdk\platforms\android-4\tools

    However, the latest android sdk tools seems to put the adb.exe in c:\android-sdk\platform-tools

    The null pointer seems to be associated with this!

    Quick fix worked for me: copy adb.exe to c:\android-sdk\tools helped me open up the emulator and finally see the hello world working. Hope this helps.

    — commented December 7th 2010 by Satish Ganesan

1 Answer

  • Wow, thanks for that really fast and helpful answer!! Love that community!
    I followed Satish's advice and copied adb.exe to folder platform-tools.
    However, I then got windows failures claiming not to find adbWinApi.dll.
    So, I deleted that adb.exe-copy and added the platform-tools folder to the PATH environment variable of windows. And WOW - both HelloWorld and KitchenSink DO work!!! Amazing, thank's for that hint.
    I got an errormessage for both HelloWorld and Kitchensink in the middle of execution, saying "[ERROR] C:\android-sdk\tools\apkbuilder.bat [TRACE] This tool is dprecated." - but it seems not to influence the result - IT WORKS :-) THANKS

    — answered December 7th 2010 by Henrik Brocke
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.