Difference between revisions of "Android studio setup"

Line 2: Line 2:
  
 
The following instructions are just the summary of the [https://developer.android.com/studio/install.html Google Android Studio official documentation] on ''Ubuntu 14.10 x64''
 
The following instructions are just the summary of the [https://developer.android.com/studio/install.html Google Android Studio official documentation] on ''Ubuntu 14.10 x64''
 +
 +
 +
=Setup Android Studio=
 +
 +
# Download application
 +
# Unzip application
 +
# Install required libraries
 +
<syntaxhighlight lang="bash">
 +
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32bz2-1.0
 +
</syntaxhighlight>
 +
 +
 +
 +
=Setup ADB=
 +
 +
Official Google documentation: https://developer.android.com/studio/command-line/index.html
 +
 +
<syntaxhighlight lang="bash">
 +
# Go to the path of android-sdk
 +
sudo ln -s /mnt/temp/Dev/android-sdk ~/android-sdk
 +
sudo ln -s /mnt/temp/Dev/android-sdk/platform-tools/adb /usr/bin/adb
 +
 +
# Test
 +
adb version
 +
</syntaxhighlight>
  
  

Revision as of 20:31, 6 November 2016


The following instructions are just the summary of the Google Android Studio official documentation on Ubuntu 14.10 x64


Setup Android Studio

  1. Download application
  2. Unzip application
  3. Install required libraries
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32bz2-1.0


Setup ADB

Official Google documentation: https://developer.android.com/studio/command-line/index.html

# Go to the path of android-sdk
sudo ln -s /mnt/temp/Dev/android-sdk ~/android-sdk
sudo ln -s /mnt/temp/Dev/android-sdk/platform-tools/adb /usr/bin/adb

# Test
adb version


Android device (USB)

Official documentation: https://developer.android.com/studio/run/device.html#setting-up


Create configuration file

sudo vim /etc/udev/rules.d/51-android.rules


Add the following line

SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666", GROUP="plugdev"
  • The MODE assignment specifies read/write permissions
  • And GROUP defines which Unix group owns the device node.


sudo chmod a+r /etc/udev/rules.d/51-android.rules


reboot computer


Android first app

Link to Google's tutorial: https://developer.android.com/training/basics/firstapp/index.html



Documentation

https://developer.android.com/index.html