Help Center> Optical Character Recognition> SDK Reference> SDK Environment Setup> Preparing an Android Development Environment

Preparing an Android Development Environment

Scenario

OCR Android SDK supports Windows, Linux, and Mac operating systems. This section uses Windows as an example to describe how to configure the environment. Table 1 describes the required operating environment.

Table 1 Environment preparation

Item

Description

OS

Windows OS. Windows 7 or later is recommended.

Installing Android Studio

Android Studio 3.1.3 or later is recommended.

Procedure

OCR Android SDK uses the Android Studio IDE for development. The following describes how to install and configure Android Studio 3.1.3 in the Windows 7 environment. If you have installed and configured Android Studio, skip this section.

  1. Prepare a Java development environment by referring to the instructions in Preparing a Java Development Environment.
  2. Configure Android Studio.

    Go to https://developer.android.com/studio#downloads to download Android Studio 3.1.3 for the Windows environment.

  3. Start Android Studio, select Open an existing Android Studio project, and then select the path of the OCR Android SDK package on the local PC.
  4. The project targets API level 26. If the SDK does not have this version, install Android API 26.