1.2 seems pretty broken to me, when concerning Android.
- Still can't import KitchenSink or any other project under Windows or Linux (but that's old news.)
- Running KitchenSink under Windows -- never loads. First "launch" produces un-ending "Building..." message (trace pastie ). That's not so unusual for first launch. But now second "launch" says it should be running but nothing happens (pastie ).
- Create new project and try to run it in emulator: the Test & Package page is "blank" -- no buttons to do anything. Even if you start & stop Developer.
Hope my pasties help a bit.
Regards, Bill
9 Answers
The problem re getting an Android option on the Test & Package page has been solved in the source code, but it's tagged in the ticketing system for 1.3 (which makes me fear it's not coming until end of May).
At your own risk:
For the brave, you can replace the mobile sdk's android/android.py file (please back it up first!) with the contents of the fixed file from github. For example, that file on my OSX install is /Library/Application Support/Titanium/mobilesdk/osx/1.2.0/android/android.py. On my WinXP box, it's C:Documents and Settings/All Users/Application Data/Titanium/mobilesdk/win32/1.2.0/android/android.py. YMMV!
[EDIT] Note that even after you do this, the projects you created with 1.2 will not be launch-able in Android. Only projects you create after doing this change will have the option to launch in Android.
I cannot even launch android applications with 1.2.0
I have just downloaded the installation file and installed it (using Windows 7).
It says that the application should be up and running but it does not even install on the emulator.
Any help please? With the other versions (1.1.2) it does install and run.
Edit: Can it be an issue from the SD card?
I'm having the same problem trying to create a fresh project and build it for Android. When you go to Test & Package there is no tab for Android. When you go to the "Run on Device" tab, there is an Android tab but it says this project is not configured for Android.
One way to work around this is to create the project under 1.1.2 and then edit it to 1.2.0.
It still seems to have trouble finding the emulator though, it keeps looping asking the adb for devices and getting nothing back:
[DEBUG] /Users/nwing/Documents/android-sdk/tools/adb -e devices [TRACE] wait_for_device returned: List of devices attached [TRACE] [TRACE] [DEBUG] /Users/nwing/Documents/android-sdk/tools/adb -e devices [TRACE] wait_for_device returned: List of devices attached [TRACE] [TRACE]The only workaround I've found for this is to delete all virtual android devices and let Titanium create a new one under that project. This must be done at least once for EACH project. The newly created device will NOT work with the next project you create.
Of course, after you get it to actually copy over, the stupidly simple default new app crashes immediately in the android emulator.
I'm using OS X Leopard, and various levels of the android API
Ok on the fail to import problem in Resources/perspectives/projects/js/projects.js under the Titanium Developer directory (Program Files).
Try changing line 1584 from
if (Projects.hasIPad==false)to
if (Titanium.platform == 'osx' && Projects.hasIPad==false)
Thanks! Will let you know.
EDIT: I changed the line as you suggested but I still can't import any projects.
Note that Titanium Developer was closed when I changed the file source.
Edit 2: It seems that every time I am starting Titanium Developer it is downloading some files which override the projects.js file. Therefore the change I made has been reset back to default since the file has been overwritten.
Any idea why this happens?
Hi,
I just tried the fix you suggested - i.e. replacing the android.py file. It is different from the one that I had before (i diffed). But when I launch the project - it still cannot load the sdk - the entry says "Loading" and stays that way...
What am I missing?
Thanks for your help!
Hi,
I just tried the fix you suggested - i.e. replacing the android.py file. It is different from the one that I had before (i diffed). But when I launch the project - it still cannot load the sdk - the entry says "Loading" and stays that way...
What am I missing?
Thanks for your help!
Hi Srini,
It could be two different problems. For example, I'm unable to run the KitchenSink 1.2 successfully, even if I don't modify that android.py file.
See my post about that.
Regards,
Bill
is there any üpatch or fix or workaround for winXP / android? i've just tried to start a new project, but no way to launch the emulator. do i have to wait until may to continue?? thx, u.
Your Answer
Think you can help? Login to answer this question!