【问题标题】:Android App Crash on start - Didn't find class com.newrelic.agent.android.instrumentation.HttpInstrumentationAndroid App Crash on start - 找不到类 com.newrelic.agent.android.instrumentation.HttpInstrumentation
【发布时间】:2018-09-28 11:54:12
【问题描述】:

应用程序在 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

【问题讨论】:

标签: android android-studio gradle crash dependencies


【解决方案1】:

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

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

【讨论】:

    【解决方案2】:

    New relic 最近于 2018 年 9 月 10 日发布了5.19.1。此版本仅适用于面向 SDK 28 或更高版本的应用。我的 targetSDK 是 27。由于新的 relic 应用程序的更高版本崩溃了。所以我把它改成了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'

    【讨论】:

      猜你喜欢
      • 2013-10-31
      • 2022-12-19
      • 1970-01-01
      • 1970-01-01
      • 2017-02-27
      • 2016-10-05
      • 2022-07-19
      • 1970-01-01
      • 2020-11-11
      相关资源
      最近更新 更多