Installing the Demo Via Android Studio¶
To start looking at the KnomiMobile-SampleApp-Android, we recommend using Android Studio Electric Eel | 2022.1.1 Patch 2 or higher to compile and run the demo on your Android device. To begin using the demo:
Start Android Studio.
Open an Existing Project. Navigate to the Android directory in the installer and select it.
Select the Project Structure and then Project to set the Android Gradle Plugin Version to 7.1.0 and Gradle Version to 7.2.
Set the Project Structure to use JAVA 11
Select File -> Project Structure -> SDK Location
Select Gradle Setting where is says “JDK location has moved to Gradle Settings
Gradle JDK drop down select the Embedded JDK option
Set Source and Target Compatibility
Select File -> Project Structure -> Modules
Source Compatibility -> select Java Version 11
Target Compatibility -> select Java Version 11
For this sample application place the Regula license file (regula.license) in the raw directroy with resources (app/src/main/res/raw)
Select your connected device in Android Studio and press Run.
Please note:
The Android emulator is not available as an option for KnomiMobile-SampleApp-Android.
A connected device must be used for debugging and testing.
A connected device must already be setup for testing.
Android provides detailed documentation on their help website (https://developer.android.com/studio/debug/dev-options).
Please see the manual for getting started with the API and understanding the demo code.