Android 应用程序启动时崩溃 - 未找到 class com.newrelic.agent.android.instrumentation.HttpInstrumentation

Android App Crash on start - Didn't find class com.newrelic.agent.android.instrumentation.HttpInstrumentation

应用程序在 2 天前运行良好。但是 运行 来自 Android Studio 的相同代码在启动时崩溃了应用程序。我也检查了旧代码,但仍然崩溃。几天前使用相同代码创建的构建工作正常。 Android Studio 有什么问题吗?或者可能是因为 gradle 依赖关系。请指导我解决这个问题。

这是崩溃日志:

java.lang.NoClassDefFoundError: Failed resolution of: 
Lcom/newrelic/agent/android/instrumentation/HttpInstrumentation;

新遗物的崩溃详情:

Didn't find class "com.newrelic.agent.android.instrumentation.HttpInstrumentation"
on path: DexPathList[[zip file "/data/app/com.fixdconsumer-1/base.apk"],
nativeLibraryDirectories=[/data/app/com.fixdconsumer-1/lib/arm, 
/data/app/com.fixdconsumer-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]

已经尝试过这些解决方案但没有奏效:
New Relic Class Not Found ... I don't even use new relic
https://github.com/opendatakit/collect/issues/387
https://github.com/react-native-community/react-native-blur/issues/110

最近于 2018 年 9 月 10 日 5.19.1 发布了新遗留物。只有面向 SDK 28 或更高版本的应用才需要此版本。我的 targetSDK 是 27。由于更高版本的新遗物应用程序崩溃了。所以我将其更改为 5.19.0 并且现在已解决。

https://docs.newrelic.com/docs/release-notes/mobile-release-notes/android-release-notes

早些时候:
实施 'com.newrelic.agent.android:android-agent:5.+'

更新为:
实施 'com.newrelic.agent.android:android-agent:5.19.0'

New Relic 已发布 5.20.0,修复了这个 5.19.1 问题

https://docs.newrelic.com/docs/release-notes/mobile-release-notes/android-release-notes