Building the Android Demo
This section describes how to quickly compile and run the Android demo of the client SDK.
Environment Requirements
Ensure that the following environment requirements are met during the compilation and running of the Android demo.
Item |
Requirement |
---|---|
JDK version |
1.8.0 or later |
Minimum Android API version |
API 23 |
CPU architecture support |
Arm64 and Armv7 |
Integration Tool |
Android Studio (latest official version recommended) |
Requesting test resources and app IDs |
For details, see Preparations. |
Item |
Requirement |
---|---|
JDK configuration |
sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 |
Gradle version |
gradle-7.4-all |
compileSdkVersion |
31 |
Target SDK version |
31 |
Gradle plugin version |
com.android.tools.build:gradle:7.1.3 |
SDK Build-Tools version |
31.0.0 |
Procedure
- Download the SDK and demo source code.
- Copy the SDK AAR files.
- Copy all AAR resources in the libs folder in the SDK ZIP package to the libs folder of the demo project.
- Edit and run the demo project.
- Start Android Studio.
- Open the demo project, as shown in Figure 3.
The screen shown in Figure 4 is displayed.
- Open the gradle-wrapper.properties file and check whether Gradle can be downloaded. If Gradle cannot be downloaded, manually download it from the website specified in the file, and configure the local dependency.
Figure 6 Configuring the local Gradle- Open the build.gradle file and check whether Google can be connected. If no, comment out other information and add an available Maven repository.
Figure 7 Configure Maven.- Compile and run the demo project.
- Request an app ID.
For details about how to request an app ID, see Introduction to App ID Authentication.
Replace APP_ID in the userinfo.properties configuration file with the obtained app ID.
Figure 8 Replacing the app ID - Use the demo.
- In-meeting screen
Figure 9 In-meeting screen of the Android demo
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot