Launch ADT or Eclipse, select "Install New Software..." from the Help menu, and drag or paste this link into the box above the "Select All" button:
https://download.newrelic.com/android_agent/eclipse-staging/
Next, click "Select All", uncheck "Contact all update sites", click "Next", and follow the instructions to complete installation and restart your IDE.
Finally, right click on your app project and select 'Update New Relic'.
Download and unzip the New Relic SDK for Ant from:
http://download.newrelic.com/android_agent/ant-staging/NewRelic_Android_Agent_3.419.0.zip
Simply merge this into your build.gradle:
buildscript {
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/comnewrelic-1163'
}
maven {
url 'https://oss.sonatype.org/content/repositories/comnewrelic-1164'
}
}
dependencies {
classpath 'com.newrelic.agent.android:agent-gradle-plugin:3.419.0'
}
}
apply plugin: 'newrelic'
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/comnewrelic-1163'
}
}
dependencies {
compile 'com.newrelic.agent.android:android-agent:3.419.0'
}
Simply merge this into your pom.xml:
<pluginRepositories>
<pluginRepository>
<id>staged-releases</id>
<url>https://oss.sonatype.org/content/repositories/comnewrelic-1163/</url>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>staged-releases</id>
<url>https://oss.sonatype.org/content/repositories/comnewrelic-1163/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.newrelic.agent.android</groupId>
<artifactId>android-agent</artifactId>
<version>3.419.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.newrelic.agent.android</groupId>
<artifactId>agent-maven-plugin</artifactId>
<version>3.419.0</version>
<executions>
<execution>
<goals>
<goal>instrument</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>