Difference between revisions of "Development environment for Android"
From Bashlinux
Line 1: | Line 1: | ||
__NOTOC__ |
__NOTOC__ |
||
− | == How to setup Android SDK == |
+ | === How to setup Android SDK === |
This is to build applications for Android |
This is to build applications for Android |
||
− | + | '''Linux Setup'''<br> |
|
If installing on a 64-bit system, then install the following packages before to start because Android SDK is 32-bit |
If installing on a 64-bit system, then install the following packages before to start because Android SDK is 32-bit |
||
⚫ | |||
− | |||
⚫ | |||
− | <pre><nowiki> |
||
⚫ | |||
⚫ | |||
− | libX11-devel.i686 libXrender.i686 libXrandr.i686 |
||
− | </nowiki></pre> |
||
− | |||
− | |||
⚫ | |||
⚫ | |||
− | |||
− | <pre><nowiki> |
||
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 |
+ | * Download and install plugin for the preferred IDE |
− | + | ''' 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 |
+ | * 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 === |
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 |
||
⚫ | |||
− | </nowiki></pre> |
||
⚫ | |||
− | |||
⚫ | |||
⚫ | |||
− | |||
− | <pre><nowiki> |
||
− | http://download.eclipse.org/releases/<eclipse_release>/ |
||
− | </nowiki></pre> |
||
− | |||
⚫ | |||
⚫ | |||
* On the new dialog click on 'Add' button and add https://dl-ssl.google.com/android/eclipse/ in ''Work with'' and "Android Plugin" in ''name field'' |
* On the new dialog click on 'Add' button and add https://dl-ssl.google.com/android/eclipse/ in ''Work with'' and "Android Plugin" in ''name field'' |
Revision as of 00:55, 7 June 2015
How to setup Android SDK
This is to build applications for Android
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
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 > Add New software
- On the new dialog click on 'Add' button and add https://dl-ssl.google.com/android/eclipse/ in Work with and "Android Plugin" in name field