Install on Device - Android - never works
I've spent quite a bit of time running through the posts here and I've seen a few hints of people having problems, but no real conversation on the topic.
Running Titanium 1.2.1 and attempting to get KitchenSink (or anything) to install on an Android device fails every single time.
There is no error returned. According to Titanium it works. However, nothing ever shows up on the phone.
Tried this from a Mac and from an XP machine. Same result.
Device is set to accept 'insecure' apps, etc, etc.
Can someone please point me in the right direction to solve this?
Thanks.
20 Answers
-
I was having this problem too - trying to deploy from Titanium on a Mac to a Galaxy Samsung S II. Turns out all I had to do was go to Settings>Applications>Development and turn on USB debugging. Titanium found the device like a charm after that.
As previously mentioned on this thread, it won't launch automatically so you'll have to do that yourself.
Note that this may interfere with other features on the phone - if you use Kies for example. For full details check this thread:
http://androidforums.com/samsung-galaxy-s2-international/393624-help-samsung-galaxy-s2-wont-connect-kies.html -
Hi I had the same problem.
Make sure that you set the USB connection to "Charge only" or else the application will not install.
This happens because when the USB connection is set to "Disk Drive" the sd card cannot be mounted to install applications.
Hope this helps :)
-
Ya, me too. Till date, I can't get any app to run in the android emulator. My most recent experience is that it will ignore all my splash screen and custom app icon and auto replace with the default Ti ones….
-
My suggestions:
Locate the APK from the dist folder and direclty copy to the Android phone SD and instlal it using Astro File manager or something else. Can this work?
-
This thread is 2 years old but I'm having the same problem. I installed Titanium a few weeks ago.
I'm running on Windows 7 Pro 64-bit. My phone is the HTC Google Nexus One running 2.2.
The phone is set for USB Debugging, Stay awake, Allow mock locations. USB storage is off. Status shows USB connected and USB debugging connected.
>>> FAIL.<<<
JAVA_HOME var is defined properly and still fails on Java.
All my Eclipse based IDEs see my device and can deploy but Titanium.
Like most people, I have no time to deal with this. What's the solution Appcelerator Team? Titanium to recognize the Android SDK similarly problematic. -
Hey Jason.. we've fixed a number of bugs surrounding launching and deployment of android apps in HEAD, would you mind grabbing a recent nightly build of the android mobile SDK, and let us know if that solves your problem? There's instructions on this post:
-
Hi I had the same problem.
Make sure that you set the USB connection to "Charge only" or else the application will not install.
This happens because when the USB connection is set to "Disk Drive" the sd card cannot be mounted to install applications.
Hope this helps :)
-
As Simon mentioned, you can't mount your phone's SD card when you plug in your USB cable. I had trouble when I first started trying to run on the device for this vary reason.
-
Thanks all. Unfortunately, still doesn't work.
I have tried it with the device mounted and not mounted. Nada.
I've tried the update mentioned here, on both Mac and Windows. Still no go.
Any additional ideas?
Thanks for the help, do appreciate it.
-
Do you have USB debugging turned on for your device?
-
Yeah, USB debugging is turned on.
I have managed to at least get Titanium to spit back an error from the Mac now though. Just says there was an error, nothing really descriptive though.
It appears 1.2.1 is also having issues with java on my machine for some reason. Actually, on 3 different macs I'm having the same java issues. I believe others are experiencing it as well.
The windows machine here does not have those java problems, but still does not install.
-
Anyone want to throw any thoughts out there? Is it time to give up on Appcelerator? I really hope not.
The unfortunate thing is that we have already practically finished an app using Titanium, however, now we can get anything to work so all that work may be lost.
We had an app working with 0.8. Then had to re-write for 1.0.
Now that one is failing due to this situation.
– Jason
-
I got this. I was having the same issue. I downloaded and reinstalled everything. Come to find out that my device was not in the Android's USB driver install. I have an HTC Eris. I went o HTC's website and downloaded and installed the HTC Sync software on my computer (PC running Vista). See if you actually have your device's USB drivers installed. Android's site does not provide all the devices that run Android. Too many are coming out.
Also, go to your Build folder in your project, copy the AndroidManifest.xml and create an AndroidManifest.custom.xml and add that in the same place your AndroidManifest.xml is at and changed 'debuggable' from "false" to "true" in your AndroidManifest.custom.xml.
Finally, make sure you device's settings are USB debuggable "On", Charge Only, and Third Party applications are turned on and allowed. -
Ti is great for iphone but I have never ever get it to work smoothly with Android. The most I got is to compile and run the app on the android emulator, only to crash on first launch..
-
This thread is 7 months old but I'm having the same problem. I installed Titanium a few weeks ago.
I'm running 1.2.1 on Windows 7 64-bit. The HelloWorld app runs correctly on the emulator. My phone is the HTC Google Nexus One running 2.2. In Titanium Developer, in the tab Test & Package, in the tab Run on Device, I click Install Now. It says "Installing app on device…" for a long time, but nothing happens.
The phone is set for USB Debugging, Stay awake, Allow mock locations. USB storage is off. Status shows USB connected and USB debugging connected.
What have I forgotten to do?
-
Installing the usb drivers worked for me (in my case htc sync)
-
Hi there,
10 months later, I still have the exact same problem of the application not starting on the phone and Titanium doing as everything went fine.
My phone is in USB debugging mode, allowing mock installations.
I tried to install the app on the phone both with the USB Storage and without, it did not work…My main concern is that it works perfectly with Rhomobile Rhodes, in USB Debugging + USB Storage mode but just doesn't work on Titanium…
It writes "Installing app on device…" on the top right corner then shows the logo and that's it. Nothing happen on the phone.
I tried all possible settings on the phone and none of them worked (neither the recommended Mock+Debug+not-usb-storage).Windows 7 x64
Titanium Dev 1.2.2, SDK 1.5.1Any help?
-
I think your solution works, but actually now it works also through Titanium Developer.
The only problem is that the application does not automatically start. But it seems to work now!
I needed (and still need sometimes otherwise it just fails at application startup) to delete the android build folder, make a small change to the project settings (Edit tab), save it, and rebuild everything.Also I installed the 64 bits driver of my cellphone.
I think this is not what solved my problems but still may be useful to tell it…
So far I had installed only the official driver that came with the phone, but it is only 32 bits. Android SDK and Titanium are also 32 bits anyway (I believe…) so I thought it's fine but I found 64 dlls on the web. I just copy/pasted it into the System32 directory (the dlls in the SysWOW64 were already there and more recent). -
Hi,
10 months later.. I too had similar problem. But when I installed it via adb it worked in my HCT Wildfire S.
\build\android\bin>adb install app.apk 1790 KB/s (1661287 bytes in 0.906s) pkg: /data/local/tmp/app.apk Success
ref: adb
-
Hey,
I was having the same problem on Mac and the below was what I did to get it working.
I had the following on my Nexus 7:
Unknown Sources on. [https://wiki.appcelerator.org/display/guides/Deploying+to+Android+devices]
Developer Mode on.
USB Debugging Mode on.
Mock Installations on.
It by default was connected as a Media Device.
Not locked.Using terminal in the location of the adb file I ran
./adb kill-server
wait a few seconds, then ran./adb start-server
. You can then do./adb devices
to see if your device is being found.I got info on how to do the above here [http://forum.xda-developers.com/showthread.php?t=1917237]
After that I just attempted to rebuild the android device on my tablet and it worked fine, it didn't launch itself and the app I built was the Kitchen Sink, this didn't work correctly, it freezes and doesn't load anything. I am not sure if this the that Kitchen isn't supported well on the Nexus 7.