Back to top

Set up Android Studio

Android Studio is the official IDE for Android app development. You will need to download and install this IDE in order to develop any apps using the Knox Capture SDK.

Install Android Studio

To install Android Studio for your operating system, please follow the relevant Windows, Mac, or Linux instructions in Android Studio’s user guide.

Create an Android project

After you install and launch Android Studio, you’ll need to create a new Android project. To do this:

  1. In the Welcome to Android Studio window, Select New Project.
  2. Select Phone and Tablet, then choose an Activity template for your new project and click Next. If you’re not sure which Activity template to choose, select No Activity.
  3. In the New Project dialog, give your project a name and provide a location to save your project files.
  4. In the Language field, select Kotlin or Java, then set Minimum SDK to API 31: Android 12.0 (S).
  5. Click Finish to create the project.

Configure your Android Project environment

After your project is created, Android Studio will begin to download the necessary files for development. This may take several minutes depending on your internet connection speed. Once the download is complete, you should see a Gradle sync finished notification in the bottom-left corner of the screen.

Once the files are downloaded, you’ll need to configure your project environment. To do this:

  1. In the project navigation menu, select Gradle Scripts build.gradle (Module:

  2. In the editor, make the following changes to the build.gradle (:app) file:

        android {
            compileSdkVersion 31
            defaultConfig {
                minSdkVersion 31
  3. After making the file changes, click Sync Now to update your script.

Is this page helpful?