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.
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".
-
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.
-
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.
-
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.
-
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.
-
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:$PATHexport PATH
-
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.
-
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.
-
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.