Help Center/ Application Performance Management/ Getting Started(2.0)/ Monitoring Android Applications/ Connecting Agents
Updated on 2025-12-29 GMT+08:00
Connecting Agents
Procedure
- Log in to the APM console.
- Click
on the left and choose Management & Governance > Application Performance Management. - In the navigation tree on the left, choose App Monitoring > App List. On the displayed page, click Connect Mobile App.
- Select Android for App Type. Select an application from the drop-down list and enter a mobile app name.
- Select one or more SDK extended configuration items. You can also select no items. The data of unselected items will not be displayed.
- Click Create Mobile App.
- Track the service.
- Android SDK access
- Click Download to download the configuration file.
- Place the downloaded file in the root directory of the project, as shown in the following figure. Figure 1 Root directory of the Android project
- Add SDK dependencies.
- Add the Maven repository to settings.gradle.
pluginManagement { ... repositories { ... // Add this content: mavenCentral() } } dependencyResolutionManagement { ... repositories { ... // Add this content: mavenCentral() } } - Add plug-in dependencies to build.gradle.
buildscript { dependencies { ... classpath 'io.github.apm-sdk:apm-sdk-plugin:{version}' ... } } plugins { ... id 'org.jetbrains.kotlin.android' version 'KOTLIN_VERSION' apply false // Add kotlin 1.6.20 or later. ... } - Add dependencies to app/build.gradle.
plugins { ... id 'org.jetbrains.kotlin.android' id 'kotlin-kapt' id 'com.cloud.apm.plugin'// Add dependency plug-ins. ... } dependencies { ... implementation 'io.github.apm-sdk:apm-sdk-android:{version}' ... }
- Add the Maven repository to settings.gradle.
- Flutter access
- Click Download to download the configuration file.
- Place the downloaded file in the root directory of the project, as shown in the following figure. Figure 2 Tracking the Flutter app
- Add SDK dependencies.
- Add the APM Flutter SDK to flutter_app/pubspec.yaml.
dependencies: ... apm_flutter_plugin: {apm_flutter_sdk_version} - Add the APM Android SDK to flutter_app/android/build.gradle.kts.
buildscript { repositories { google() mavenCentral() } ... dependencies { ... classpath("io.github.apm-sdk:apm-sdk-plugin:{apm_android_plugin_version}") } } - Add the APM Android SDK to flutter_app/android/app/build.gradle.kts.
plugins { ... id("com.cloud.apm.plugin") } android { ... dependencies { ... implementation("io.github.apm-sdk:apm-sdk-android:{apm_android_sdk_version}") } }
- Add the APM Flutter SDK to flutter_app/pubspec.yaml.
- Android SDK access
Parent topic: Monitoring Android Applications
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot