Difference between revisions of "IoTGateway/BSP/Android/ApplicationDevelopGuide"

From ESS-WIKI
Jump to: navigation, search
Line 23: Line 23:
 
=== Install Eclipse ===
 
=== Install Eclipse ===
  
Please download "eclipse-jee-juno-SR2-win32-x86_64.zip" from  
+
Please download "eclipse-jee-juno-SR2-win32-x86_64.zip" from
  
http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-win32-x86_64.zip . 
+
[http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-win32-x86_64.zip http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-win32-x86_64.zip] . 
  
 
After the download is complete, unzip directly to the desired directory, double-click the eclipse icon to use, without additional installation process.
 
After the download is complete, unzip directly to the desired directory, double-click the eclipse icon to use, without additional installation process.
 +
 +
=== Install Android ADT Plug-in ===
 +
 +
Follow the setup wizard to install Android ADT plug-in .
 +
 +
The following pictures shows each step of the recommended setup procedure:
 +
 +
#Open eclipse->help->install new software
 +
#Click Add to Add Repository
 +
 +
Name:Android
 +
 +
Location:[https://dl-ssl.google.com/android/eclipse https://dl-ssl.google.com/android/eclipse]
 +
 +
#Choose Developer Tools.
 +
#
 +
 +
Click Next.
 +
 +
#
 +
 +
Agree with the license.
 +
 +
#
 +
 +
Installing ADT plug-in.
 +
 +
#
 +
 +
Install finished and Restart Eclipse.
 +
 +
=== Install SDK ===
 +
 +
Please download " installer_r24.1.2-windows.exe " from [https://dl.google.com/android/installer_r24.1.2-windows.exe https://dl.google.com/android/installer_r24.1.2-windows.exe]. Launch the .exe file you downloaded . Follow the setup wizard to install necessary SDK tools.
 +
 +
The following pictures shows each step of the recommended setup procedure:
 +
 +
#Click Next to start setup.
 +
#Choose Users.
 +
#Set installation location.
 +
#Installing Android SDK Tool.
 +
#
  
 
== ADB Tool ==
 
== ADB Tool ==

Revision as of 05:38, 6 February 2017

preparations

Please download "jdk-8u121-windows-x64.exe" from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html. Launch the .exe file you downloaded . Follow the setup wizard to install JDK .

Then refer to the following step to open system variables window:

Computer -> Properties -> Advanced system settings -> Advanced -> envionment variables.


Create a new system variable JAVA_HOME. The variable value is the location where JDK installed, such as: D:\Program Files\Java\jdk1.8.0_121


Create a new system variable CLASS_PATH. The variable value is: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;

Edit system variable PATH. Add: %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

Build Android Studio development environment

Build Eclipse development environment

Install Eclipse

Please download "eclipse-jee-juno-SR2-win32-x86_64.zip" from

http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-win32-x86_64.zip

After the download is complete, unzip directly to the desired directory, double-click the eclipse icon to use, without additional installation process.

Install Android ADT Plug-in

Follow the setup wizard to install Android ADT plug-in .

The following pictures shows each step of the recommended setup procedure:

  1. Open eclipse->help->install new software
  2. Click Add to Add Repository

Name:Android

Location:https://dl-ssl.google.com/android/eclipse

  1. Choose Developer Tools.

Click Next.

Agree with the license.

Installing ADT plug-in.

Install finished and Restart Eclipse.

Install SDK

Please download " installer_r24.1.2-windows.exe " from https://dl.google.com/android/installer_r24.1.2-windows.exe. Launch the .exe file you downloaded . Follow the setup wizard to install necessary SDK tools.

The following pictures shows each step of the recommended setup procedure:

  1. Click Next to start setup.
  2. Choose Users.
  3. Set installation location.
  4. Installing Android SDK Tool.

ADB Tool