Yesterday, I tried to install Android toolkit. As Usual, I found some problem. In here, I used Debian, one of many types of linux. I can solve all problem, when the instalation process runing.
Like as usual, open up a terminal and login as “root”
Install Java6
1. Now, let’s install Java run-time, which is needed for Android SDK:
# apt-get install sun-java6-jre
Install Android SDK
2. Next, let’s make a directory in root, you must remember it. Because it's temporal directory :
# mkdir /sdk
3. Next, let’s download the Android SDK tarball an save it :
# cd /sdk
# wget http://dl.google.com/android/android-sdk_r15-linux.tgz
Here, yo.u can also replace the URL http://dl.google.com/android/android-sdk_r15-linux.tgz by the latest version you find on Android SDK page here.
4. Next, let’s untar the package by doing :
# tar xvf http://dl.google.com/android/android-sdk_r06-linux_86.tgz
5. Copy all files into /sdk :
# cp android-sdk-linux_86/* . -rf
6. Remove the empty directory :
# rm android-sdk-linux_86/ -rf
7. Then run the GUI Android update to get all the ADB files you need :
# ./tools/android update sdk
8. Select “Install All” then “Install”.
Install Eclipse
9. Open your terminal, and don't forget to login as "root" to install this package :
# apt-get install eclipse
Install ADT (Android Development Tools) Plugins
10. Open "Install New Software" in eclipse
To open it, click on Help > Install New Software
11. Then Add site or Add in right top
12. Add the site, type your plugins and site
Name : ADT Plugsins
Location : https://dl-ssl.google.com/android/eclipse/
or
Location : http://dl-ssl.google.com/android/eclipse/
13. If you found some problem when install like failed to install, SDK and ADT manager not found, and etc.
Than, try other location to install or download manualy the package here.
This is the other location, if you failed to install some package :
Location : http://dl.google.com/eclipse/plugin/3.5
Location : http://download.eclipse.org/releases/galileo
You must try one by one to install all package, than the android SDK Manager and AVD manager will be appear in your eclipse (Window > SDK Manager and Window > AVD manager) after all package success to install. But after that, you still can't open it. Let's do this step to solve the problem.
14. Copy all file in directory /root/sdk to android-sdks in your user directory.
# cp /root/sdk /home/(your user)/android-sdks
# cd /home/(your user)/android-sdks
# cp /sdk/* . -rf
# cp rm -r /sdk
for example :
# cp /root/sdk /home/anita-muy/android-sdks
# cd /home/anita-muy/android-sdks
# cp /sdk/* . -rf
# cp rm -r /sdk
15. After all, you can open SDK Manager and AVD Manager. Than you can make android software.


No comments:
Post a Comment