应用程序在 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]]
已经尝试了这些解决方案,但没有奏效:
找不到新的遗物类...我什至不使用新的遗物
https://github.com/opendatakit/collect/issues/387
https://github.com/react-native-community/react-native-blur/issues/110
New Relic 已经发布了5.20.0
修复了这个5.19.1
问题
https://docs.newrelic.com/docs/release-notes/mobile-release-notes/android-release-notes
New Relic最近于2018年9月10日发布了5.19.1
。只有面向 SDK 28 或更高版本的应用才需要此版本。地雷目标SDK是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'