You are not logged in.

#1 2011-07-12 13:59:15

Gjore.S
Member
Registered: 2011-07-12
Posts: 3

[SOLVED] Appcelerator Titanium Studio: Android SDK Not Found

Hello,

This is my first post here, as it is my first week of using arch linux smile

I have a problem using Appcelerator Titanium Studio. I have installed android sdk but whenever I select it's location through the titanium studio configuration window, it shows the error "Android SDK not found at the specified path":

MOD EDIT -- Please follow image posting rules -- Inxsible

What I tried and did:

1. Installed Android-SDK through yaourt in /opt/android-sdk, updated all packages through ./android, copied adb into "tools" as suggested by appcelerator. Tried selecting this directory in titanium, did not work.

I tried all of the following paths:

/opt/android-sdk
/opt/android-sdk/
/opt/android-sdk/tools
/opt/android-sdk/platform-tools
...

2. Installed Android-SDK manually by downloading the latest binaries: http://dl.google.com/android/android-sd … ux_x86.tgz into ~/android-sdk

I updated all packages there again though ./android and tried selecting all paths I could think of related to that directory in titanium studio, did not work again.

3. I thought maybe folder permissions are the problem but even a 777 wouldn't work.

4. I checked the titanium log file and here is the error shown: http://pastebin.com/2XRJ1xyx

Here is the script mentioned in the error: http://pastebin.com/jXvaa23M

5. I also tried setting #!/usr/bin/env python2 in the script since the default interpreter is python 3 in my system, did not work.

Additional Info: I have Sun JDK 64bit, JRE, tried both 32 & 64 of Titanium Studio, the 32 one didn't want to run at all.

I can confirm that android SDK works since the emulator is running flawless.

So at this point I can't continue anymore and have no idea where to go next :S

any help / experiences appreciated.

Last edited by Gjore.S (2011-07-24 02:11:18)

Offline

#2 2011-07-12 15:02:54

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Appcelerator Titanium Studio: Android SDK Not Found

Please do not post full size images. Make use of an image hosting website and post thumbnails here.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-07-24 02:10:47

Gjore.S
Member
Registered: 2011-07-12
Posts: 3

Re: [SOLVED] Appcelerator Titanium Studio: Android SDK Not Found

It turned out that installing python25 from aur solved the problem, android sdk is now detected and everything works smooth.

I can finally consider my arch laptop complete smile

Offline

#4 2011-07-24 08:28:50

ViruSzZ
Member
From: The Streets
Registered: 2010-10-14
Posts: 202
Website

Re: [SOLVED] Appcelerator Titanium Studio: Android SDK Not Found

Gjore.S wrote:

It turned out that installing python25 from aur solved the problem, android sdk is now detected and everything works smooth.

I can finally consider my arch laptop complete smile


Cool Mate,

Yeah, now your lappy is fully ready for development and you'll be one crazy muthafc*r .... I'm glad you've become an Archer as you really are ....

Out & see ya in the hack lab in 2 hours ...


Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog

Offline

#5 2011-07-24 17:01:15

tapichu
Member
Registered: 2011-07-24
Posts: 2

Re: [SOLVED] Appcelerator Titanium Studio: Android SDK Not Found

I found another "workaround":

sudo rm /usr/bin/python
sudo ln -s /usr/bin/python2 /usr/bin/python

But it's not very useful since in breaks all other python packages.

The point is, it works perfectly fine with python 2.7.2 so I was wondering why you had to install python 2.5.

Did python 2.5 simply replace /usr/bin/python so it points to the 2.5 command?

Cheers

Offline

#6 2011-07-24 22:31:50

ViruSzZ
Member
From: The Streets
Registered: 2010-10-14
Posts: 202
Website

Re: [SOLVED] Appcelerator Titanium Studio: Android SDK Not Found

I think in the end @Gjore.S 'solved' his problem the same way as you @tapichu, though I do not recommend that way of symlinking too as It can break some other python packages as Arch migrated to python3 long time ago smile ...

Anyhow, if that works for you and the other stuff are also working, keep it that way ....

Oout


Their Momma Made Em, Their Momma Gave em & now she can`t even SAVE`em | My WebLog

Offline

#7 2011-07-24 23:25:53

tapichu
Member
Registered: 2011-07-24
Posts: 2

Re: [SOLVED] Appcelerator Titanium Studio: Android SDK Not Found

I don't like this "workaround" either, I'm still trying to find a good way of solving this. I like having python3 as the default, and other packages expect this.

I tried modifying some environment variables (PYTHON, PYTHONHOME).

I tried ln -s /usr/bin/python2 $HOME/bin/python and putting $HOME/bin at the begining of my user's PATH.

I tried replacing every #!/usr/bin/env python with #!/usr/bin/env python2.

But so far I haven't found a solution.

Offline

#8 2011-09-13 08:09:40

Pwipwi
Member
Registered: 2011-09-13
Posts: 1

Re: [SOLVED] Appcelerator Titanium Studio: Android SDK Not Found

I would recommend installing python-virtualenv (or python2-virtualenv) and making a python environment with python2.

then you just have to activate it, and there you go.

Offline

Board footer

Powered by FluxBB