Tambahan untuk referensi pribadi syukur-syukur bisa berguna juga untuk teman yang lagi butuh cara memasang / menginstal android sdk dan eclipse di Ubuntu.
Artikel lengkap ini di salin dari sumber
1. Installing Java Runtime (JDK) and Eclipse IDE
- Search
Software
on Ubuntu and launchUbuntu Software Center
- Search
Java
onUbuntu Software Center
and then install theOpenJDK Java Runtime
.
- Search
Eclipse
onUbuntu Software Center
and then install it.
- If you have successfully installed eclipse and JDK, it will appear in the search result on your computer.
For the JDK, you can also press CTRL + ALT + T to open a terminal and type commandjava -version
to check again.
- Tips : Lock the eclipse icon on launcher.
2. Downloading SDK
- Go to http://developer.android.com/sdk/index.html to download the latest version of SDK.
Scroll down and clickDOWNLOAD FROM OTHER PLATFORMS
Clickandroid-sdk_r22.6.2-linux.tgz
underLinux 32 & 64-bit
ofSDK Tools Only
.
- Tick
I have read and agree with the above terms and conditions
and clickDownload android-sdk_r22.6.2-linux.tgz
.
- Wait for the download process.
3. Preparing for Installation
- Go to the location where you set to download the file.
- Rigth click the file[.tgz] and select
Extract Here
.
- Now you can see that a file called
android-sdk-linux
appears as if the following.
- Enter the folder
android-sdk-linux
.
- Enter the folder
tools
and then copy the folder location.
- Press the keys CTRL + ALT + T to open a terminal and then use the following command. Where
/home/casper/Downloads/android-sdk-linux/tools
is the location I copied previously. You can just typecd
and right click to past the location to the terminal.
cd /home/casper/Downloads/android-sdk-linux/tools ./android
- Now the
Android SDK Manager
will be run.
4. Installing Packages
- Click Install [Number] packages....
- Click
Accept License
and then click Install.
- Wait for the installation process.
- Finally, this message will be shown.
5. Editing ".bashrc"
- Press CTRL + ALT + T to open a new terminal and type :
gedit ~/.bashrc
- Now the following text will appear.
- Add the following to the top of the entire text and then save it. (Do not close the file)
export PATH=${PATH}:~/android-sdk-linux/tools export PATH=${PATH}:~/android-sdk-linux/platform-tools
- Example :
- [Recommended] Move the whole file
android-sdk-linux
to your eclipse's workspace and under a folder that you create namedAndroid
. Moreover, you have to copy the location.
- Now back to the ".bashrc" file and the replace the '~' with the location you copied previously and then save it and close it.
- Logout and relogin your Ubuntu system.
6. Setting Up an Android Virtual Device
- Press CTRL + ALT + T and type
android avd
to open the Android Virtual Device Manager.
- Click New.... Set up like the following and click OK.
- Click your virtual device and then click Start....
- Click Launch.
- Launching your virtual device
7. Installing ADT Plugin on Eclipse
- Start Eclipse and go to Help -> Install New Software...
- Click Add....
- Type the following and then click OK.
Name : ADT Plugin Location : https://dl-ssl.google.com/android/eclipse/
- Tick the checkbox of
Developer Tools
and then click Next>.
- Click Next>.
- Click "I accept the..." and click Finish.
- Wait for the installation process.
- Restart eclipse.
- Click Open Preferences.
- Copy your own SDK location (The location of the file
android-sdk-linux
).
- Paste to the
SDK Location:
textbox and then click Apply and OK.
- Enjoy to create any android application with your Ubuntu.
Semoga artikel ini bermanfaat, jika ingin men-copas mohon cantumkan sumber. Jangan lupa share ke teman-temanmu juga. Terima kasih
yanuabialwi
No comments:
Post a Comment