Difference between revisions of "OS: Android - Android Studio"

From OnnoWiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 48: Line 48:
  
 
Siapkan aplikasi pendukung
 
Siapkan aplikasi pendukung
 +
 +
sudo apt-get update
 +
 +
 +
===Untuk 32bit===
 +
 +
sudo apt-get install libc6 libncurses5 libstdc++6 libz1 libncurses5 libbz2-1.0 \
 +
android-tools-adb android-tools-fastboot python-lunch
 +
 +
===Untuk 64bit===
  
 
  sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32ncurses5 lib32bz2-1.0 \
 
  sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32ncurses5 lib32bz2-1.0 \
Line 54: Line 64:
  
 
Siapkan Java Development Kit
 
Siapkan Java Development Kit
 +
 +
* Account di oracle.com, kita perlu membuat account di oracle.com untuk bisa men-download JDK Java yang dibutuhkan.
 +
 +
https://login.oracle.com/mysso/signon.jsp
  
 
* Download JDK 7 dari
 
* Download JDK 7 dari
  
 
  http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
 
  http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
 +
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
  
 
* Lakukan
 
* Lakukan
  
  cp jdk-7u79-linux-x64.tar.gz /usr/local/src/
+
  cp jdk-7u80-linux-i586.tar.gz /usr/local/src/
 
  cd /usr/local/src/
 
  cd /usr/local/src/
  tar zxvf jdk-7u79-linux-x64.tar.gz  
+
  tar zxvf jdk-7u80-linux-i586.tar.gz
  
* Export path JDK di /usr/local/src/jdk1.7.0_79
+
* Export path JDK di /usr/local/src/jdk1.7.0_80
  
  JAVA_HOME=/usr/local/src/jdk1.7.0_79
+
  JAVA_HOME=/usr/local/src/jdk1.7.0_80
 
  export JAVA_HOME
 
  export JAVA_HOME
 
  PATH=$JAVA_HOME/bin:$PATH  
 
  PATH=$JAVA_HOME/bin:$PATH  
 
  export PATH
 
  export PATH
 
  
 
==Download==
 
==Download==
Line 80: Line 94:
  
 
  http://tools.android.com/download/studio/stable
 
  http://tools.android.com/download/studio/stable
  https://dl.google.com/dl/android/studio/ide-zips/1.5.1.0/android-studio-ide-141.2456560-linux.zip
+
http://tools.android.com/download/studio/builds/android-studio-2-1-2
 +
  https://dl.google.com/dl/android/studio/ide-zips/2.1.2.0/android-studio-ide-143.2915827-linux.zip
  
  
Line 87: Line 102:
 
  sudo su
 
  sudo su
 
  rm -Rf /usr/local/src/android-studio
 
  rm -Rf /usr/local/src/android-studio
  cp android-studio-ide-141.2456560-linux.zip /usr/local/src/
+
  cp android-studio-ide-143.2915827-linux.zip /usr/local/src/
 
  cd /usr/local/src/
 
  cd /usr/local/src/
  unzip android-studio-ide-141.2456560-linux.zip
+
  unzip android-studio-ide-143.2915827-linux.zip
 
 
  
 
==Menjalankan Android Studio==
 
==Menjalankan Android Studio==

Latest revision as of 12:35, 14 July 2016

Android Studio

  • Android Studio IDE
  • Android SDK tools
  • Android 5.0 (Lollipop) Platform
  • Android 5.0 emulator system image dengan Google API

Kebutuhan System

Windows

  • Microsoft® Windows® 8/7/Vista/2003 (32 or 64-bit)
  • 2 GB RAM minimum, 4 GB RAM recommended
  • 400 MB hard disk space
  • At least 1 GB for Android SDK, emulator system images, and caches
  • 1280 x 800 minimum screen resolution
  • Java Development Kit (JDK) 7
  • Optional for accelerated emulator: Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality

Mac OS X

  • Mac® OS X® 10.8.5 or higher, up to 10.9 (Mavericks)
  • 2 GB RAM minimum, 4 GB RAM recommended
  • 400 MB hard disk space
  • At least 1 GB for Android SDK, emulator system images, and caches
  • 1280 x 800 minimum screen resolution
  • Java Runtime Environment (JRE) 6
  • Java Development Kit (JDK) 7
  • Optional for accelerated emulator: Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality

Di Mac OS, menjalankan Android Studio dengan Java Runtime Environment (JRE) 6 untuk mengoptimasi font rendering. Kita dapat mengkonfigurasi project kita untuk menggunakan Java Development Kit (JDK) 6 or JDK 7.

Linux

  • GNOME or KDE desktop
  • GNU C Library (glibc) 2.15 or later
  • 2 GB RAM minimum, 4 GB RAM recommended
  • 400 MB hard disk space
  • At least 1 GB for Android SDK, emulator system images, and caches
  • 1280 x 800 minimum screen resolution
  • Oracle® Java Development Kit (JDK) 7

Di test di Ubuntu 14.04, Trusty Tahr (distribusi 64-bit yang mampu menjalankan aplikasi 32-bit).


Instalasi Android Studio

Siapkan aplikasi pendukung

sudo apt-get update


Untuk 32bit

sudo apt-get install libc6 libncurses5 libstdc++6 libz1 libncurses5 libbz2-1.0 \
android-tools-adb android-tools-fastboot python-lunch

Untuk 64bit

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32ncurses5 lib32bz2-1.0 \
android-tools-adb android-tools-fastboot python-lunch


Siapkan Java Development Kit

  • Account di oracle.com, kita perlu membuat account di oracle.com untuk bisa men-download JDK Java yang dibutuhkan.
https://login.oracle.com/mysso/signon.jsp
  • Download JDK 7 dari
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
  • Lakukan
cp jdk-7u80-linux-i586.tar.gz /usr/local/src/
cd /usr/local/src/
tar zxvf jdk-7u80-linux-i586.tar.gz
  • Export path JDK di /usr/local/src/jdk1.7.0_80
JAVA_HOME=/usr/local/src/jdk1.7.0_80
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH 
export PATH

Download

Siapkan Android Studio untuk di Instalasi

  • Download Android Studio dari
http://tools.android.com/download/studio/stable
http://tools.android.com/download/studio/builds/android-studio-2-1-2
https://dl.google.com/dl/android/studio/ide-zips/2.1.2.0/android-studio-ide-143.2915827-linux.zip


  • Copy & Extrak
sudo su
rm -Rf /usr/local/src/android-studio
cp android-studio-ide-143.2915827-linux.zip /usr/local/src/
cd /usr/local/src/
unzip android-studio-ide-143.2915827-linux.zip

Menjalankan Android Studio

  • Menjalankan android studio sebagai super user
sudo su
cd /usr/local/src/android-studio/bin/
./studio.sh


Jika kita ingin menjalankan android-studio dari path lainnya, kita dapat menambahkan android-studio/bin ke PATH

PATH=/usr/local/src/android-studio/bin:$PATH 
export PATH

Selesai sudah, kita siap menggunakan android-studio.

Jika kita pertama kali menjalankan Android Studio, kita akan melihat Welcome Screen yang memberikan beberapa cara untuk memulai:

  • Untuk membuat apps baru, klik New Project.
  • Ini akan menjalankan New Project wizard yang akan membantu kita untuk mensetup sebuah project menggunakan app template yang ada.

Referensi

Pranala Menarik