简体   繁体   English

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

[英]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.

相关问题 Android未找到应用程序类崩溃 - Android didn't find application class crash 在Android Studio中运行检测测试的问题; 找不到类“ android.test.runner.AndroidJUnitRunner” - Issues with running an instrumentation test in Android Studio; Didn't find class “android.test.runner.AndroidJUnitRunner” React Native 应用程序在 Android 上启动时崩溃:未找到 class “com.facebook.react.devsupport.DevSupportManagerImpl” - React Native app crashing at startup on Android: Didn't find class “com.facebook.react.devsupport.DevSupportManagerImpl” 没找到上课“com.google.android.gms.common.app.GmsApplication” - Didn't find class “com.google.android.gms.common.app.GmsApplication” Android:没有找到类“com.google.unity.GoogleUnityActivity” - Android: Didn't find class "com.google.unity.GoogleUnityActivity" 意外的顶级异常:com.android.dx.util.ExceptionWithContext 在处理 com/newrelic/agent/android/Agent.class 时 - UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.util.ExceptionWithContext while processing com/newrelic/agent/android/Agent.class Google App邀请:java.lang.ClassNotFoundException:找不到类“ com.google.android.gms.appinvite.AppInviteInvitation $ IntentBuilder” - Google App Invites: java.lang.ClassNotFoundException: Didn't find class “com.google.android.gms.appinvite.AppInviteInvitation$IntentBuilder” 没找到类“mono.android.app.Application” - Didn't find class “mono.android.app.Application” Android:在路径上找不到类“ com.google.android.gms.ads.AdActivity” - Android: Didn't find class “com.google.android.gms.ads.AdActivity” on path React Native Android应用未启动 - React native android app didn't start
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM