Titanium Community Questions & Answer Archive

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

Ampersand in user path prevents creation of AVD (Windows Vista).

The user folder (C:\users...) for my profile contains an ampersand (C:\users\tom&jerry\ - real names hidden). This is preventing Titanium from creating the Android AVDs needed to test apps, giving the following error:

[TRACE] Error: 'C:\Users\tom' is not recognized as a valid sdcard value.

It looks like the command that creates the avd is stripping away part of the string when it tries to create an avd. I've manage to track down a function 'create_avd' in 1.4.0/android/builder.py which I think may be the culprit, but I'm not sure where to go from there. The sdcard has been created, so the problem must be after that point.

There are a multitude of methods for renaming the user folder, none of which are straight forward (registry edits, etc.). I'm hoping someone can tell me a way of making Titanium function with this, albeit rare and idiotic, usage case.

Does anyone have any suggestions?

— asked December 7th 2010 by Gwyn Perry
  • android
  • avd
  • win32
0 Comments

2 Answers

  • Hi Gwyn,

    Thanks for investigating this so deeply, it's a great head start. I've created a ticket in our Lighthouse bug tracking system. You can follow it here if you sign up for Lighthouse and be notified of changes.

    I'm assessing it now to see if it's a quick fix or not.

    Thx,
    Bill

    — answered December 7th 2010 by Bill Dawson
    permalink
    1 Comment
    • I see that this is unfortunately not fixable any time soon. I was just wondering, could I create the AVDs myself using the SDK Manager? Am I right in thinking that Titanium first checks if the AVD exists, then creates it if it doesn't?

      If this is the case, perhaps I can get around this by simply creating my own AVDs with the exact settings that Titanium is looking for. Would this work? And, if so, are those settings written down somewhere?

      — commented December 7th 2010 by Gwyn Perry
  • Dear community member, please watch (= vote for!) this feature request

    — answered January 14th 2012 by Winston Smith
    permalink
    0 Comments
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.