• /
  • Log in
  • Free account

Upgrade New Relic Mobile's Android SDK


Owner, Admins, or add-on managers

To ensure you have the most current version of New Relic Mobile, see the Android agent release notes. Instructions to upgrade your Android app with the latest version of New Relic Mobile will vary, based on which version of the Android agent SDK you are currently using.

Upgrade from Android SDK versions 2 or 3

If you have previously installed version 2 or 3 of the Android SDK for New Relic Mobile: Go to rpm.newrelic.com/mobile > (select an app) > Settings > Upgrade.

Upgrade Android SDK version 1

If you have previously installed version 1 of the Android SDK for New Relic Mobile, follow these steps before upgrading to version 2 or higher.



Open your AndroidManifest.xml file, and remove the NewRelicApplication class.

When you first ran nrandroid-setup, the NewRelicApplication class was added to your AndroidManifest.xml file. This has been removed from the New Relic SDK and is no longer necessary.

If you had an existing Application subclass and modified it to inherit from NewRelicApplication, update your subclass to inherit from Application instead.

Stop using nrandroid-ant.

New Relic Mobile no longer requires the custom Ant wrapper script for Android applications. Once you upgrade, simply use your standard build tools.

If you modified an existing Maven configuration to invoke the New Relic Mobile build steps, remove those modifications, and use New Relic Mobile's revised build instructions.

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.