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 Work With Android Apps At All After Upgrading To 1.4.0

I just upgraded my version of Titanium to 1.4.0 and for some reason, my custom app is not working with the Android emulator or for Android Market distribution.

Although the iPhone side of things works fine, the Android tab isn't there at all on the Run on Device page and it says that my "project is not configured to run for Android" on the Distribution page's Android tab. This wasn't happening before I upgraded.

I can run KitchenSink fine and everything there (on-device and simulator) works fine for Android, but only on the KitchenSink project; not on my custom project. For reference, my SDK path is set to /Users/*/Downloads/android-sdk-mac_86/platforms/android-8 .

If anyone can provide any help, that would be really great. Thanks.

— asked August 1st 2010 by Grant Derderian
  • 1.4.0
  • android
  • developer
  • emulator
  • mobile
  • os
  • titanium
  • x
0 Comments

9 Answers

  • I take some of what I said above back- I can no longer compile for iPhones (on-device) and I'm simply getting and error saying "Install Error".

    — answered August 2nd 2010 by Grant Derderian
    permalink
    0 Comments
  • I just created a bug report about this although maybe someone in Q&A is having the same issue.

    I edited my tiapp file to force a rebuild and no luck.. Thanks for the help anybody can offer.

    — answered August 3rd 2010 by Grant Derderian
    permalink
    0 Comments
  • hi Grant

    set the android Sdk reference to the Root level….such as the below

    /Users/*/Downloads/android-sdk-mac_86/

    and also make sure you perform a complete installation of all the Android SDK platforms.

    — answered August 4th 2010 by Satta Ravi
    permalink
    1 Comment
    • Thanks for the message. I changed the SDK path, although nothing in the application changed and the errors didn't go away.

      Here's a list of the SDK components I have installed: Screenshot Link

      Hopefully this information is useful. Thanks again for your help.

      — commented August 4th 2010 by Grant Derderian
  • I checked with this ticket and it talked about replacing the Android.py file, which I did and that did not help. My "iPhone Issues" are better now, but now I can't compile my app for Android.

    — answered August 4th 2010 by Grant Derderian
    permalink
    0 Comments
  • Please look at the installation guide for OSX at the bottom of the programming guides section.

    That ticket applied specifically to Android 1.2.X, not 1.3.0 and greater. Your ADK path is set wrong. It must be set to the ADK root which is the directory that contains tools, add-ons, platforms. You must have the Android 1.6 (API Level 4) and Google API Level 4 installed. You can then build and create projects.

    The ADK root path should be browsed to or entered w/o the trailing slash IIRC there is a bug related to that.

    — answered August 4th 2010 by Don Thorp
    permalink
    0 Comments
  • Thanks for the reply. I tried all the steps you mentioned (including the install guide which I already had followed before this question) and I still get the error message and don't see the Android tab. Again, this only happens in my custom project and not in KitchenSink, which I can successfully put on an iPhone or Android phone.

    The simulators for both iOS and Android are working OK, I just don't see the option in Titanium to test or simulate on Android. My .bash_profile is also pasted below.

    Thanks for your help.

    PATH=/Applications/android-sdk-mac_86/tools:$PATH
    PATH=/Applications/android-sdk-mac_86/platforms/android-8/tools:$PATH

    export PATH

    — answered August 4th 2010 by Grant Derderian
    permalink
    2 Comments
    • Can you post a full trace level log? On your custom project did you recently create a new one or is this an old one?

      — commented August 4th 2010 by Don Thorp
    • Thanks for the reply- this is an older project which I've had for a few months. This might be a stupid question but how do I get the Android trace logs if I don't have the option to simulate or build on Android on this project?

      — commented August 7th 2010 by Grant Derderian
  • Thanks for the reply- this is an older project which I've had for a few months. This might be a stupid question but how do I get the Android trace logs if I don't have the option to simulate or build on Android on this project?

    Thanks.

    — answered August 5th 2010 by Grant Derderian
    permalink
    0 Comments
  • what are your dev environment?

    Versions for

    • OS
    • Xcode
    • Apple SDKs
    • Ti Dev
    • Ti SDKs
    • Adroid SDKs
    • Java

    I found out that you need the right combos for everything to work right.

    — answered August 5th 2010 by Peter Lum
    permalink
    0 Comments
  • Here are my versions of everything you mentioned. Thanks for your message:

    OS X: 10.6.4 Snow Leopard

    Xcode: 3.2.3 64 Bit

       Xcode IDE: 1688.0
    
       Xcode Core: 1691.0
    
       Xcode ToolSupport: 1591.0
    

    Apple SDKs/iPhone Simulator: 4.0 (211.1)

    Titanium Developer: 1.2.1

    Titanium SDK This Project Is Running On: 1.3.0

    Android SDKs Installed: http://cl.ly/1sVb

    Java: 1.6.0_20

    Thanks again for your help.

    — answered August 5th 2010 by Grant Derderian
    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.