Sunday, 5 September 2010

How to install lovely Android SDK to your computer

- Download Eclipse Galileo for your Linux based (mine was ubuntu) OS first then download the Android SDK. Run the tools/android file in the terminal then you will be able to set your android SDK visually by its interface. But this time you need to donwload the SDK packages because they do not come inside of you installer! Therefore, you get into the SDK interface and click to the Available Packages and select default package which is not selected! You click to the install button you feel sure yourself but BAM! an error which says that there is a connection error to get definition XML of the packages. Because you are shocked you do not read the end of the message and google this problem in the internet. But then you realizes that you need to select enforce https connection from the settings menu in the SDK interface, this is an important selection! therefore google left this to the users anyway. After that you install the SDK properly and this time you need to instal ADT (Android Developer Tools) to your Eclipse IDE, Pew! first step accomplished.

You see an URL for ADT source in google's website. You need to copy and paste it to the Help/Install New Software window's location area, anyway you see the ADT and click for another installation but BAM BAM! Another error which says that because of the lack of some BLA BLA packages the installation can not be finished. Your eager face turns into sour lemon but you did not lose your hope still and google this problem. This time, you find a solution which says you need to download WST Adapter because ADT needs it but it does not come with ADT and google does not say anything about it. I found the solution in a german forum and althogh i cannot speak any german but this problem helped me to improve my german skills. anyway now you have another link for WST Adapter and you can see the sunshine again you add this URL to your Help/Install New Software window's location area again and you hit to the Install button with all your power but BAM BAM BAM! Eclipse cannot find this repository because it is obsolete now. You feel that your eyes get wet but you don't lose your courage still. You google for an alternative solution and you see that google has already have a solution for this problem with another URL. Aww, was it that easy? anyway You get your smiley face because this time you are sure because this is official this solution is provided by google but BAM BAM BAM BAM! This link is obsolete as well. IRgggghhh!.... Anyway you are still alive, you think another solution immediately because of the adrenalin in your veins and that is to download Eclipse Helios and try ALL THESE URLs Helios equivalent but BAM BAM BAM BAM BAM! Helios throw exception error during the code writing. OH DEAR GOD! Now you are crying and cursing Ubuntu, Eclipse and google but you are still want to get in to the smart phone applications and you can not afford to the 1 year iOS developer licence ($100), brand new Mac ($1500) and an iPhone ($800). But you have still a pc right? and Linux is rubbish right? shall we try our chance in W7 this time yes? why not?

Then you format your OPEN SOURCE linux for any case ( HA HA HA :D ) and starts every thing from the begining. This time you download Java SDK first, then Eclipse then Android SDK. You need to download SDK tools bam bam bam bam bam..! again toold downloading error but this time small 'bam's because you know that you need to choose enforce https and set settings in right way and start again. Interface starts donwloading the tools but you know there are something coming, what was it, wait a sec and oh yes BAM BAM BAM BAM BAM BAM BAM BAM! Interface says that a folder is being used by another process it can be your anti virus program please turn it off. Huh? turning off the Windows Security Essentials. Aww man, of course you have to turn it off what you were thinking you are installing a huge, highly unstable and OS modifier SDK therefore my WSE may define it as an attact to W7 and may block it. Anyway, it is allright you gonna do it but where was the turn off switch of the WSE. Allright you found it in the Settings menu and turned it off alright it was your fault. Oh yes, finally you installed SDK and setted it hurray but what about ADT. Ok try the same link for it. And? BAM? BAM? BAM? no not this time. Yes I know it is very shocky but it installs into eclipse without errors. Yayyyy, everthing is prfect after a couple of hours you are ready to develop your first Android App but the time is late now and you feel sleepy so you go to the bad with a proud of installing Android SDK, ADT, Java SDK, W7, Eclipse Helios.

I dont know what shall I say about this process but Android SDK is such a pain in the ass especially if you try to use it in Ubuntu. Even in Eclipse, it is not responding sometimes beauces of the auto-intellisene keyword search process. I dont get the Java developers after my .Net and visual studio experience, Code developing in .Net is like a dream like; you cruise ship sinks near by a tropical island and fortunately you swim to an Island and every body is dead but 5 victoria secret models.

Short of long, Android is great platform, yes, but screw Linux to develop Android Apps and if you can afford, screw W7 as well and go get a Mac.

No comments: