【发布时间】: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
【问题讨论】:
-
developer.android.com/studio/build/multidex 试试这个可能对你有帮助
-
@akshay 我已经添加了 multidex,但它仍然崩溃。
标签: android android-studio gradle crash dependencies