Development environment for Android: Difference between revisions

From Bashlinux
Jump to navigationJump to search
Content deleted Content added
No edit summary
Manpaz (talk | contribs)
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
= Development environment for Android =
=== How to setup Android Studio on Linux ===
== How to setup Android SDK ==
Android Studio is now the official IDE to build Android applications
* Get the Studio IDE from https://developer.android.com/sdk/index.html
This is to build applications for Android
* Unzip the downloaded file
=== Linux Setup ===
# cd ~/bin/
* Download the [[http://developer.android.com/sdk|Android SDK]]
# unzip android-studio-ide-*-linux.zip
* Add to the `$PATH` the tools location
* Add <tt>android-studio/bin/</tt> to your path
# export PATH=$PATH:~/bin/android-studio/bin
<pre><nowiki>
# sed -i -e '/^PATH/s/$/:$HOME\/bin\/android-studio\/bin/' .bash_profile
* To start Android Studio execute:
# studio.sh

=== How to setup Android SDK ===
'''Linux Setup'''<br>
If installing on a 64-bit system, then install the following packages before to start because Android SDK is 32-bit
yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686
* Download the [http://developer.android.com/sdk Android SDK]
* Add to the <code>$PATH</code> the tools location
export PATH=${PATH}:<sdk_location>/tools:<sdk_location>/platform-tools
export PATH=${PATH}:<sdk_location>/tools:<sdk_location>/platform-tools
</nowiki></pre>

* Install add-ons and documentation
* Install add-ons and documentation
* Download and install plugin for the prefered IDE
* Download and install plugin for the preferred IDE


=== Windows Setup ===
''' Windows Setup'''<br>
* Download SDK
* Download SDK
* Install SDK
* Install SDK
* Disable anti-virus
* Disable anti-virus
* Install add-ons and documentation
* Install add-ons and documentation
* Download and install plugin for the prefered IDE
* Download and install plugin for the preferred IDE


== How to setup Eclipse to build Android Apps on Linux ==
=== How to setup Eclipse to build Android Apps on Linux (Legacy) ===
This setup Eclipse and Android Eclipse Plugin on Linux
This setup Eclipse and Android Eclipse Plugin on Linux

* Install Eclipse
* Install Eclipse
<pre><nowiki>
yum install eclipse eclipse-jdt eclipse-gef
yum install eclipse eclipse-jdt eclipse-gef
* Enable the proper eclipse repository, based on the release codename <code><nowiki>http://download.eclipse.org/releases/ECLIPSE_RELEASE/</nowiki></code>
</nowiki></pre>
* Update eclipse, <code>Help > Check Updates</code>

* Add the ADT on <code>Help > Install New Software</code>
* Enable the proper eclipse repository, based on the release codename
* On the new dialog click on 'Add' button and fill in the following fields:
** <tt>Location:</tt> https://dl-ssl.google.com/android/eclipse/
<pre><nowiki>
** <tt>Name:</tt> Android Plugin
http://download.eclipse.org/releases/<eclipse_release>/
</nowiki></pre>

* Update eclipse, 'Help > Check Updates'
* Add the ADT on 'Help > Add New software'
* On the new dialog click on 'Add' button and add `https://dl-ssl.google.com/android/eclipse/` in location and `Android Plugin in name field

Latest revision as of 16:58, 9 June 2015

How to setup Android Studio on Linux

Android Studio is now the official IDE to build Android applications

# cd ~/bin/
# unzip android-studio-ide-*-linux.zip
  • Add android-studio/bin/ to your path
 # export PATH=$PATH:~/bin/android-studio/bin
 # sed -i -e '/^PATH/s/$/:$HOME\/bin\/android-studio\/bin/' .bash_profile
  • To start Android Studio execute:
# studio.sh

How to setup Android SDK

Linux Setup
If installing on a 64-bit system, then install the following packages before to start because Android SDK is 32-bit

yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686
  • Download the Android SDK
  • Add to the $PATH the tools location
export PATH=${PATH}:<sdk_location>/tools:<sdk_location>/platform-tools
  • Install add-ons and documentation
  • Download and install plugin for the preferred IDE

Windows Setup

  • Download SDK
  • Install SDK
  • Disable anti-virus
  • Install add-ons and documentation
  • Download and install plugin for the preferred IDE

How to setup Eclipse to build Android Apps on Linux (Legacy)

This setup Eclipse and Android Eclipse Plugin on Linux

  • Install Eclipse
yum install eclipse eclipse-jdt eclipse-gef
  • Enable the proper eclipse repository, based on the release codename http://download.eclipse.org/releases/ECLIPSE_RELEASE/
  • Update eclipse, Help > Check Updates
  • Add the ADT on Help > Install New Software
  • On the new dialog click on 'Add' button and fill in the following fields: