Titanium Community Questions & Answer Archive

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

Create New Mobile Project in Ti Developer 1.2.1 missing Android Emulator Option

Hi

This is strange. I've just installed the new Ti Developer 1.2.1 and Mobile SDK 1.2.0.

I create a brand new mobile project to test the Android emulator (as I have not get any app running before).

I got to the Run Emulator tab but only Iphone option is available. The Android option is no more.

My previous projects are ok, android option still there.

Think this is deliberate?

— asked April 7th 2010 by Peter Lum
  • 1.2.1
  • android
  • developer
  • emulator
  • missing
  • option
0 Comments

25 Answers

  • Replaced the new android.py file fixed the problem.

    However, creating a default new mobile project, and run it in the android emulator still crash. The app crashed, not the emulator.

    — answered April 7th 2010 by Peter Lum
    permalink
    0 Comments
  • For me replacing Android.py on OSX didn't fix the issue. Still don't see the emulator option for Android. (I did make a new project afterwards). Out of ideas.

    — answered April 13th 2010 by Eric Jensen
    permalink
    0 Comments
  • Hey guys..

    If you're still having the app-crash-on-launch problem or any other potential issues when Launching your app, you should probably try the latest updates from our git repository. I've fixed a number of issues with the SDCard copier, and packaging/deploying in general.

    For now, the sdcard copier has been turned off by default unless you put this property in your tiapp.xml:

    <property name="ti.android.loadfromsdcard" type="bool">true</property>
    

    I've put up a public drop that has recent builds of the android only mobile sdk here:
    http://drop.io/titanium_android_nightly

    Please keep in mind these are android only builds, meaning that you won't be able to launch your project in the iPhone simulator with these builds. Also, they are built from HEAD meaning there is a chance that there is some breaking changes since our last public release.

    You can extract this zip into your Titanium installation folder. In OSX that's one of:

    /Library/Application Support/Titanium
    # or
    ~/Library/Application Support/Titanium
    

    in Windows:

    # Vista, Win7
    C:\ProgramData\Titanium
    # XP
    C:\Documents and Settings\All Users\Application Data\Titanium
    

    in Linux:

    ~/.titanium
    

    You'll need to change your project's SDK to '1.2.1' after you extract and restart Developer

    — answered April 20th 2010 by Marshall Culpepper
    permalink
    0 Comments
  • See this item for the answer and workaround.

    — answered April 7th 2010 by Don Thorp
    permalink
    0 Comments
  • I replaced the py file as above - but I am still having the same issue. Android is not showing up as an option in the emulator tab.

    It does show up in the KitchenSink project - but the android text boxes show "Loading…" but nothing happens.

    I am on a Mac running SnowLeopard.

    Thanks.

    — answered April 14th 2010 by Srini Vasan
    permalink
    0 Comments
  • Could anyone from Appcelerator team make a very clear explanation and stick it to the top of web page about all android.py related issues? We can see dozens of similar messages and twitter posts about Ti mobile issues, and answer is same for all, but it seems it's not enough.

    SDK update (android.py) doesn't fix problem of existing projects, because /build/ folder is created at project creation phase and never recreated (why???). If some part is broken (Ti SDK, iPhone SDK, Android SDK) - project will be broken. So, to fix existing project, you need create new project with same ID, name etc. and copy Resources folder from old one to new project

    — answered April 25th 2010 by Konstantin Vorobyev
    permalink
    0 Comments
  • Today i tried for the first time to install Titanium and i have the same issues with android.

    I'm running Titanium 1.2.1 with mobilesdk 1.2.1 from mobilesdk-1.2.1-20100426195031-android-win32.zip and the latest android sdk.
    Java jdk-6u20-windows-i586 and the latest Kitchen Sink from github.

    I'm using the modified android.py. Should i use the included one?

    Kitchen Sink is crashing in both 1.6 simulator and on my Xperia X10.

    Any other hints?

    — answered April 28th 2010 by Catalin C.
    permalink
    0 Comments
  • Hmm, I'm having the same issue, and this workaround does not seem to work.

    I'm running windows 7, and I modified the file in: C:ProgramDataTitaniummobilesdkwin321.2.0android

    EDIT: After playing around with it for a while, and upgrading my Android SDK, it now works with new projects. Sorry for the confusion.

    — answered April 7th 2010 by David Fox
    permalink
    0 Comments
  • I had the same problem, I replaced the android.py, it didn't work. Some how I tried to figure out within the android.py file that it needs android 1.6 revision 4. I updated and it worked. I guess this was the problem.

    Hope it helps.

    Thanks.

    — answered April 14th 2010 by Ved Prakash
    permalink
    0 Comments
  • I replaced the py file as above - but I am still having the same issue. Android is not showing up as an option in the emulator tab.

    It does show up in the KitchenSink project - but the android text boxes show "Loading…" but nothing happens.

    I am on a Mac running SnowLeopard.

    Thanks.

    — answered April 14th 2010 by Srini Vasan
    permalink
    0 Comments
  • I replaced the py file as above - but I am still having the same issue. Android is not showing up as an option in the emulator tab.

    It does show up in the KitchenSink project - but the android text boxes show "Loading…" but nothing happens.

    I am on a Mac running SnowLeopard.

    Thanks.

    — answered April 15th 2010 by Srini Vasan
    permalink
    0 Comments
  • I'm having the exact same problem as Vasan.

    I'm on a Mac and when I create a new project, Titaniums says I have the Android SDK, I have the Android 1.6 r4, but when i go to the Run Emulator tab, Android is not visible.

    Android is only visible on the Kitchen Sink project, but when I try to run it there, it compiles and everything seems ok, no error messages of any kind, the emulator start, but nothing more appens, no app gets installed or starts…

    Can any of the devs give an input here?

    — answered April 20th 2010 by Sindre Sorhus
    permalink
    0 Comments
  • Hey guys..

    If you're still having the app-crash-on-launch problem or any other potential issues when Launching your app, you should probably try the latest updates from our git repository. I've fixed a number of issues with the SDCard copier, and packaging/deploying in general.

    For now, the sdcard copier has been turned off by default unless you put this property in your tiapp.xml:

    <property name="ti.android.loadfromsdcard" type="bool">true</property>
    

    I've put up a public drop that has recent builds of the android only mobile sdk here:
    http://drop.io/titanium_android_nightly

    Please keep in mind these are android only builds, meaning that you won't be able to launch your project in the iPhone simulator with these builds. Also, they are built from HEAD meaning there is a chance that there is some breaking changes since our last public release.

    You can extract this zip into your Titanium installation folder. In OSX that's one of:

    /Library/Application Support/Titanium
    # or
    ~/Library/Application Support/Titanium
    

    in Windows:

    # Vista, Win7
    C:ProgramDataTitanium
    # XP
    C:Documents and SettingsAll UsersApplication DataTitanium
    

    in Linux:

    ~/.titanium
    

    You'll need to change your project's SDK to '1.2.1' after you extract and restart Developer

    — answered April 20th 2010 by Marshall Culpepper
    permalink
    0 Comments
  • tested with nightly 4/22 worked fine.

    — answered April 22nd 2010 by Dan Trevino
    permalink
    0 Comments
  • Strange problem: I updated titanium to 1.2.1 (Windows XP), trying to build KitchenSink and run in emulator, but after "Copying project resources.." nothing happens…
    I think problem in this lines:

    [INFO] Copying project resources..
    [TRACE] Traceback (most recent call last):
    [TRACE] File "C:Documents and SettingsAll Users.WINDOWS2Application DataTitaniummobilesdkwin321.2.1androidbuilder.py", line 896, in <module>
    [TRACE] s.build_and_run(False,avd_id)
    [TRACE] File "C:Documents and SettingsAll Users.WINDOWS2Application DataTitaniummobilesdkwin321.2.1androidbuilder.py", line 751, in build_and_run
    [TRACE] self.copy_project_resources()
    [TRACE] File "C:Documents and SettingsAll Users.WINDOWS2Application DataTitaniummobilesdkwin321.2.1androidbuilder.py", line 267, in copy_project_resources
    [TRACE] self.project_deltafy = Deltafy(resources_dir, include_callback=self.include_path)
    [TRACE] File "C:Documents and SettingsAll Users.WINDOWS2Application DataTitaniummobilesdkwin321.2.1androiddeltafy.py", line 84, in __init__
    [TRACE] self.conn = sqlite3.connect(self.db_path, detect_types=sqlite3.PARSE_DECLTYPES)
    [TRACE] sqlite3.OperationalError: unable to open database file
    

    The full debug log is here: http://pastie.org/930144

    — answered April 22nd 2010 by Gennadiy Potapov
    permalink
    0 Comments
  • Yet another +1

    I'm kinda surprised this has been sitting here for this long, certainly doesn't inspire me to pay money for the service if show-stopping bugs are ignored like this in the main product.

    Would love to try Titanium out, but primarily interested in android dev so will wait till it gets resolved I suppose.

    -Jacob

    — answered April 24th 2010 by Jacob Singh
    permalink
    0 Comments
  • I tried the solution provided using the nightly snapshot. Changed my project to 1.2.1, didn't make a difference, still can't emulate or launch or package on Android.

    OSX.

    — answered April 24th 2010 by Jacob Singh
    permalink
    0 Comments
  • @Jacob @Gennadly have you guys tried using a nightly as posted in my instructions at the top of this post?

    — answered April 27th 2010 by Marshall Culpepper
    permalink
    0 Comments
  • please tell detail informations, step by step,thanks.

    — answered April 28th 2010 by jim yuan
    permalink
    0 Comments
  • Yes, I tested the nightly. If this forum wasn't in a silly order, you'd probably have noticed I posted that 2 weeks ago. I'm really surprised that this isn't getting critical bug status.

    — answered May 4th 2010 by Jacob Singh
    permalink
    0 Comments
  • Is anyone going to given a permanent solution for this?

    I can't defer my work for indefinite period :(

    — answered May 9th 2010 by Dev Priya
    permalink
    0 Comments
  • Is this problem fixed yet? I just completely restarted my install setup on the mac after my hard drive crashed and have started seeing this problem. First of all, I am unable to create new projects based on 1.4.0 - I get a project creation error. Secondly, when I create the project using 1.2.0, The android emulator doesn't show up when I create new projects. It shows up for the kitchen sink project, but even then the Android emulator's SDK version is stuck at "loading…".

    My whole setup used to work right until the hard drive crash and now I feel I'm back at square one. The setup has got to be better - atleast the Titanium Developer main window should have a debug mode so that we can debug such problems.

    — answered September 6th 2010 by Satheesh Subramanian
    permalink
    0 Comments
  • Is this problem fixed yet? I just completely restarted my install setup on the mac after my hard drive crashed and have started seeing this problem. First of all, I am unable to create new projects based on 1.4.0 - I get a project creation error. Secondly, when I create the project using 1.2.0, The android emulator doesn't show up when I create new projects. It shows up for the kitchen sink project, but even then the Android emulator's SDK version is stuck at "loading…".

    My whole setup used to work right until the hard drive crash and now I feel I'm back at square one. The setup has got to be better - atleast the Titanium Developer main window should have a debug mode so that we can debug such problems.

    — answered September 6th 2010 by Satheesh Subramanian
    permalink
    0 Comments
  • Ok. I was able to get the missing Android emulator tab to show up. All I needed to do was create a directory by name "android" under the build directory of the project. I still have the other problem with the stuck "loading…" message on the SDK drop-down box.

    — answered September 6th 2010 by Satheesh Subramanian
    permalink
    1 Comment
    • Thanks! This was the both the simplest answer and the correct one. My Android emulator tab shows up and works correctly after simply creating an "android" folder in the build folder.

      — commented September 22nd 2010 by Grant Norwood
  • I have not been able to run a single android "app" over the last three weeks. Desktop App, sure! All day long. Android: no dice. SDK 1.7.x, 2011-06-17 build, and completely pissed/frustrated.

    — answered July 18th 2011 by Jesse Benedict
    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.