Android release notes

Monday, April 6, 2020 - 10:00 Download

New in this release

  • Adds support for Android Gradle Plugin (AGP) version 3.6. AGP 3.6 requires version 5.25.0 of the New Relic agent. Previous agent versions are not supported with 3.6.
  • Apache HttpClient instrumentation is deprecated

Fixed in this release

  • Fix unhandled exception when closing a Cronet HttpUrlConnection on error conditions
  • Fixed OkHttp2/Retrofit crash when reading error response bodies
  • Better content length/bytes received reporting for OkHttp2 and OkHttp3

Known issues

The New Relic agent may not correctly detect the 'mapping.txt' file using Dexguard and AGP 3.6. We are looking into the issue.

Tuesday, February 18, 2020 - 13:00 Download

Fixed in this release

  • The agent now uploads mapping.txt files to New Relic when bundle tasks are used with Dexguard.
Tuesday, December 3, 2019 - 13:00 Download

Fixed in this release

  • Fixed a harvest error that occurred when the sum of all activity traces exceeded the default limit (64k characters), and filtering removed all traces.
  • Fixed a set of DEX failures that emerged when JSONObject(String) and JSONArray(String) invocations were instrumented. Unfortunately, the time spent in instance construction can no longer be reported as a result of the change.
Monday, October 28, 2019 - 16:20 Download

Fixed in this release

  • Clear up duplicate reporting of device data
  • Address a build failure when instrumenting apps using Gson 2.8.6
  • Exclude additional 3rd party packages from instrumentation (to address a D8 crash)
Tuesday, September 24, 2019 - 10:00 Download

New in this release

  • Updated instrumentation to include Fragment and Activity classes derived from androidx support packages.
  • Updated 3rd party licenses information.

Fixed in this release

  • Fixed crash that occurred when the agent tried to instrument Kotlin module_info.class files.
  • Updated JSON instrumentation to address crash that could occur when using R8 tools.
Monday, May 6, 2019 - 14:00 Download

New in this release

  • Refactored New Relic Agent plugin to conform to Gradle 5

Fixed in this release

  • Fixed build crash that occurred during debug logging when using Dexguard versions 8.2 - 8.4
  • Eliminated erroneous exception logging for CountingInputStream implementations
  • Clarified documentation of analytic enablement options (FeatureFlag.AnalyticsEvents and NewRelic.withAnalyticsEvents)
Friday, March 8, 2019 - 11:00 Download

Fixed in this release

  • Fixes an issue that caused lock contention on the main thread when an Activity or Fragment started during harvest.
Monday, February 4, 2019 - 15:00 Download

New in this release

  • Updated instrumentation support for OkHttp to version 3.12.0
    • Minimum supported versions are now OkHttp 3.5.0, and OkIO 1.11.0
  • Dependency JARs using signature validation are detected during instrumentation. The agent cannot instrument JARs that use signature validation when signed. JARs whose manifest contains SHA1-Digest or SHA-256-Digest manifest attributes will not be modified
  • Increase the number of available user attributes from 64 to 128

Fixed in this release

  • Fixes null pointer exception during map upload when the generated map file is empty, such as when Proguard is enabled, but obfuscation is disabled using the -dontobfuscate Proguard configuration setting.

Thursday, January 3, 2019 - 15:00 Download

Fixed in this release

  • Fixes build failure when Kotlin extensions are used
  • Eliminates a race condition that could result in ANR in apps that make many concurrent network requests
Monday, December 3, 2018 - 11:00 Download

Fixed in this release

  • Corrects a condition where a Gradle task would block when uploading Proguard/Dexguard map files
Monday, November 26, 2018 - 10:00 Download

Fixed in this release

  • Corrects a problem detecting R8-generated map files
  • Removes unnecessary Proguard map file processing task
Monday, November 5, 2018 - 14:00 Download

New in this release

  • Add support for the upcoming Android D8/R8 toolset
  • Discontinue the New Relic Maven plugin
  • Disable CPU sampling for apps running on Android 8 and higher

Fixed in this release

  • Correct the mismatched build ID shared between the stamped and uploaded Proguard/Dexguard map file and submitted crashes
  • Fix an issue that caused a Facebook login API failure
  • Update agent plugin to address Gradle 5 warnings

Notes

Dexguard users must upgrade to version 8.2.22 to be compatible with this release.

Monday, October 15, 2018 - 14:00 Download

New in this release

  • Support for the Maven plugin is now deprecated, and will be removed in version 5.21.0.
  • The minimum supported SDK level (minSdkVersion) is now 14 (Android 4.0)

Fixed in this release

  • Removed dependency on legacy Android Apache library, which resulted in NoClassDefFoundError exceptions when targeting Android SDK 28.
  • Removed cast exception with OkHTTP2 CacheResponseBody when using Retrofit 1.9.0 with OkHttp 2.7.5 .
  • Corrected mismatched UUID added to Proguard/Dexguard mapping file (the map UUID didn't match the UUID of reported crashes).
  • Restored missing Dexguard lambda instrumentation.
  • Corrected representation of LONG numeric attributes to prevent loss of precision (agent could not record precise timestamp attributes).
  • Crashes that occur prior to successfully connecting to collector will be queued until a valid connection data token is received.
  • Restored agent shutdown and final harvest when foreground services present.
Monday, September 10, 2018 - 10:00 Download

Fixes

Fixes NoClassDefFoundError crash due to missing Apache classes for apps targeting Android 9 (SDK versions P or 28 ). This release is only needed by apps that target SDK 28 or higher.

Friday, June 8, 2018 - 10:00 Download

Improvements

  • The agent will now recognize region-specific application tokens.
Tuesday, April 3, 2018 - 14:00 Download

Fixed in this release

  • Fixed problem reading from the error stream of instrumented Http/HttpsUrlConnection requests.
  • Fixed problems uploading Proguard/Dexguard mapping.txt files.
  • Eliminated a delay in shutting down the app when reporting a crash.
Wednesday, March 7, 2018 - 10:00 Download

Fixed in this release

  • Addressed potential ANR at launch when an app has the Firebase performance monitoring SDK also running.
Wednesday, February 14, 2018 - 15:00 Download

Fixed in this release

  • Fixed instrumentation failures introduced in the 5.17.0 release.
  • Corrected a hang during instant app shutdown that could occur during a crash.
Thursday, February 8, 2018 - 15:00 Download

Fixed in this release

  • Fixed trace instrumentation crash introduced in 5.17.0 release.
Wednesday, February 7, 2018 - 15:00 Download

New in this release

  • Added instrumentation support for Android Instant Apps
  • The agent now detects and instruments all feature modules for an instant app. Because instant apps are typically side-loaded, users must add NewRelic.start() calls to each entry point activity in the module. We've also created a document to help integrate the agent into your Instant App. See Install the New Relic plugin for Android Instant Apps for more information.

Fixed in this release

  • Correctly restore any pre-existing unhandled exception handler when the agent shuts downs. Maintain the state of existing unhandled exception handlers when the agent returns to foreground.
  • Fixed instrumentation of abstract classes derived from Android SDK classes.
  • Fixed instrumentation failure when using certain Java 8 features, such as lambdas.
  • Updated instrumentation support for Dexguard 8 on Android Studio 3.0.
  • Enforce @SkipTrace with Android SDK-derived classes. Previously, onCreate() and onCreateView() could not be skipped from Activity, Fragment and other SDK classes.

Pages