Android Release Notes

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.
Thursday, December 14, 2017 - 15:00 Download

New in this release

  • MobileRequestError events now contain the response body returned in the network request response, if one exists. Response bodies will only be reported if the withHttpResponseBodyCaptureEnabled feature flag is enabled. HttpResponseBodyCapture is enabled by default. Response body data will be limited to the first 4096 bytes (the Insights attribute limit). A content type attribute will also be added to the event if a "content_type" header is found in the response.
  • MobileRequestError events now also contain any cross-application tracing (CAT) data returned in the response headers. See Introduction to cross-application traces for more information.

Fixed in this release

  • Stream file handle usage during class instrumentation has been tightened up to prevent potential resource leaks.
  • Proguard map detection of release variants when using AndroidStudio 3 has been restored.
  • Add content type parameter missing from HTTP error traces when instrumenting OkHttp2, OkHttp3 and Retrofit requests.
Wednesday, November 8, 2017 - 10:30 Download

New in this release

  • The NetworkRequests feature flag is now enabled by default. The feature can still be disabled (and re-enabled) at any time if the additional MobileRequest events are not needed.
  • Added a feature flag for MobileHandledException events (FeatureFlag.HandledExceptions). Handled exception reporting is enabled by default; use this flag to globally disable the feature.

Fixed in this release

  • Crash reports are again uploaded immediately, rather than during the next scheduled harvest.
  • Correctly detects Proguard/Dexguard-enabled apps, and uploads their mapping.txt files to the symbol upload collector.
  • Restored missing instrumentation of Square Retrofit2 classes.
  • Added missing response codes from HttpURLConnection POST requests.
  • The MobileRequest event byteSent attribute has been renamed to bytesSent. Any Insights queries using byteSent must be updated to maintain accuracy.
Wednesday, October 18, 2017 - 15:00 Download

New in this release

  • The agent has added API methods to report handled exception events to Insights! Details and examples of how to use the new APIs can be found in the Android SDK API document recordHandledException. We've also updated the document that describes how to query handled exception events from Insights: Insights query examples for New Relic Mobile provides useful queries for examining handled exception event data. Apps that use Proguard or Dexguard may have to make adjustments to their Proguard configuration to preserve all exception information. Please review Configure ProGuard or DexGuard for Android Apps for more details.
  • Added support for automatic instrumentation when using Android Gradle plugin version 3 (used by Android Studio 3).

Fixed in this release

  • HttpURLConnection requests now return the correct status codes in MobileRequest events
  • Report carrier type as 'Unknown' if a valid carrier type can not be determined
  • Restore instrumentation of Android support classes (missing since version 5.13.0)
Monday, October 2, 2017 - 15:00

This release has been removed due to deployment issues with Jcenter. Please use release version 5.15.1 instead.

### New in this release

  • The agent has added API methods to report handled exception events to Insights! Details and examples of how to use the new APIs can be found in the Android SDK API document recordHandledException. We've also updated the document that describes how to query handled exception events from Insights: Insights query examples for New Relic Mobile provides useful queries for examining handled exception event data. Apps that use Proguard or Dexguard may have to make adjustments to their Proguard configuration to preserve all exception information. Please review Configure ProGuard or DexGuard for Android Apps for more details.
  • Added support for automatic instrumentation when using Android Gradle plugin version 3 (used by Android Studio 3).

### Fixed in this release

  • HttpURLConnection requests now return the correct status codes in MobileRequest events
  • Report carrier type as 'Unknown' if a valid carrier type can not be determined
  • Restore instrumentation of Android support classes (missing since version 5.13.0)
Wednesday, June 14, 2017 - 15:00 Download

New in this release

  • The agent now reports network request events to Insights! This feature must be enabled when starting the agent using the NetworkRequests FeatureFlag. When enabled all network calls will be tracked, in addition to network errors.

    We've also added a new document that describes how to query network events from Insights. Mobile Request Query Examples provides useful queries for examining network request event data.

Fixed in this release

  • Ensure there is no shared activity history state between launched sessions.

Pages