
When building each DEX file for a multidex app, the build tools perform complex decision making to determine which classes are needed in the primary DEX file so that your app can start successfully. Then you can use the multidex support library, which becomes part of the primary DEX file of your app and then manages access to the additional DEX files and the code they contain. In order to get around this limitation, you must enable multidex support. By default, Dalvik limits apps to a single x bytecode file per APK. New Relic's mobile monitoring for Android versions prior to Android 5.0 (API level 21) use the Dalvik runtime to execute app code. To install the latest Android version for your mobile app: Go to > Mobile > (select an app) > Settings > Installation. To keep your Android agent up to date, follow the procedures to upgrade the Android agent SDK for New Relic. Merge New Relic's mobile monitoring code in the Gradle & Android Studio tab to your adle file. These procedures to configure your Android app with Gradle and Android Studio also appear on the Get started page in New Relic.

If applicable: From the Mobile apps index, select Add a new app.This is a 40-character hexadecimal string for authenticating each mobile app you monitor in New Relic. Install your Android appĪs part of the installation process for mobile monitoring, New Relic automatically generates an application token.

If you have previously installed the Android agent SDK for mobile monitoring, follow the steps before upgrading to the latest version with Gradle and Android Studio. If you use Gradle or Android Studio, follow these instructions to install New Relic's mobile monitoring for the first time.
