[英]Android App Crash on start - Didn't find class com.newrelic.agent.android.instrumentation.HttpInstrumentation
App was working fine 2 days ago. 应用2天前运行良好。 But running same code from Android Studio is crashing app on start.
但是从Android Studio运行相同的代码会使应用程序在启动时崩溃。 I've checked the old code as well but that's still crashing.
我也检查了旧代码,但是仍然崩溃。 Build created from same code couple of days ago is working fine.
几天前从同一代码创建的内部版本运行良好。 Is it some problem because of Android Studio?
是否因为Android Studio而出现问题? Or may be because of gradle dependencies.
或可能是由于gradle依赖性。 Please guide me to resolve this issue.
请指导我解决此问题。
Here is the crash log: 这是崩溃日志:
java.lang.NoClassDefFoundError: Failed resolution of:
Lcom/newrelic/agent/android/instrumentation/HttpInstrumentation;
Crash details on new relic: 有关新文物的崩溃详细信息:
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]]
Already tried these solutions but didn't work: 已经尝试过这些解决方案,但是没有用:
New Relic Class Not Found ... I don't even use new relic 找不到新的遗物类...我什至不使用新的遗物
https://github.com/opendatakit/collect/issues/387 https://github.com/opendatakit/collect/issues/387
https://github.com/react-native-community/react-native-blur/issues/110 https://github.com/react-native-community/react-native-blur/issues/110
New relic has released 5.19.1
recently on September 10, 2018. This release is only needed by apps that target SDK 28 or higher. 新版本最近于2018年9月10日发布了
5.19.1
。仅针对SDK 28或更高版本的应用程序才需要此版本。 Mine targetSDK is 27. Due to higher version of new relic app crashed. 我的targetSDK是27。由于更高版本的新文物应用程序崩溃了。 So I have changed it to
5.19.0
and its solved now. 所以我将其更改为
5.19.0
,现在已解决。
https://docs.newrelic.com/docs/release-notes/mobile-release-notes/android-release-notes https://docs.newrelic.com/docs/release-notes/mobile-release-notes/android-release-notes
Earlier: 之前:
implementation 'com.newrelic.agent.android:android-agent:5.+' 实现'com.newrelic.agent.android:android-agent:5.+'
Updated to: 更新为:
implementation 'com.newrelic.agent.android:android-agent:5.19.0' 实现'com.newrelic.agent.android:android-agent:5.19.0'
New Relic has since released 5.20.0
which fixes this 5.19.1
issue 此后,New Relic已发布
5.20.0
,此发行5.20.0
修复了此5.19.1
问题
https://docs.newrelic.com/docs/release-notes/mobile-release-notes/android-release-notes https://docs.newrelic.com/docs/release-notes/mobile-release-notes/android-release-notes
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.