gpt4 book ai didi

android - 由于 newrelic 异常,应用程序在 onCreate 中崩溃

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:04:33 24 4
gpt4 key购买 nike

我已经使用 Android Studio beta 0.8.2 创建了一个 Android 应用程序,一切都很顺利,直到最近几天我在运行它时开始收到此异常:

    07-24 14:50:11.044    1176-1176/com.vme.vme I/Crashlytics﹕ Initializing Crashlytics 1.1.11.10
07-24 14:50:11.764 2325-2325/system_process D/MobileDataStateTracker﹕ default: Broadcast received: android.intent.action.ANY_DATA_STATE apnType=default
07-24 14:50:11.769 2325-2325/system_process D/MobileDataStateTracker﹕ default: Received state=CONNECTED, old=CONNECTED, reason=(unspecified)
07-24 14:50:15.079 1176-1176/com.vme.vme W/Crashlytics﹕ Crashlytics initialization was not completed in the allotted time.
07-24 14:50:15.104 1176-1176/com.vme.vme I/dalvikvm﹕ Could not find method com.newrelic.agent.android.instrumentation.Instrumentation.openConnection, referenced from method com.vme.vme.model.network.httpClient.BasicRequestHandler.openConnection
07-24 14:50:15.104 1176-1176/com.vme.vme W/dalvikvm﹕ VFY: unable to resolve static method 30466: Lcom/newrelic/agent/android/instrumentation/Instrumentation;.openConnection (Ljava/net/URLConnection;)Ljava/net/URLConnection;
07-24 14:50:15.104 1176-1176/com.vme.vme D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x0009
07-24 14:50:15.114 1176-1176/com.vme.vme I/dalvikvm﹕ Could not find method com.newrelic.agent.android.background.ApplicationStateMonitor.getInstance, referenced from method com.vme.vme.ui.activities_and_fragments.home.bases.VMEBaseActivity.onStart
07-24 14:50:15.114 1176-1176/com.vme.vme W/dalvikvm﹕ VFY: unable to resolve static method 30464: Lcom/newrelic/agent/android/background/ApplicationStateMonitor;.getInstance ()Lcom/newrelic/agent/android/background/ApplicationStateMonitor;
07-24 14:50:15.114 1176-1176/com.vme.vme D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x0000
07-24 14:50:15.114 1176-1176/com.vme.vme I/dalvikvm﹕ Could not find method com.newrelic.agent.android.background.ApplicationStateMonitor.getInstance, referenced from method com.vme.vme.ui.activities_and_fragments.home.bases.VMEBaseActivity.onStop
07-24 14:50:15.114 1176-1176/com.vme.vme W/dalvikvm﹕ VFY: unable to resolve static method 30464: Lcom/newrelic/agent/android/background/ApplicationStateMonitor;.getInstance ()Lcom/newrelic/agent/android/background/ApplicationStateMonitor;
07-24 14:50:15.114 1176-1176/com.vme.vme D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x0003
07-24 14:50:15.309 1176-1176/com.vme.vme D/AndroidRuntime﹕ Shutting down VM
07-24 14:50:15.309 1176-1176/com.vme.vme W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41797c80)
07-24 14:50:15.429 1176-1176/com.vme.vme E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.vme.vme, PID: 1176
java.lang.NoClassDefFoundError: com.newrelic.agent.android.background.ApplicationStateMonitor
at com.vme.vme.ui.activities_and_fragments.home.bases.VMEBaseActivity.onStart(VMEBaseActivity.java)

我从来没有在这个项目中使用过newrelic,我搜索过“newrelic”,但在整个项目中找不到它。

我还可以分享的东西:

  • 我有 2 个工作室实例一直在运行,在另一个项目中 **我使用的是 newrelic - 版本 2.426.0 **
  • 它发生在 Galaxy S3 和 Note 2 上。
  • 清理、重建、关闭工作室、卸载和重新安装正在解决这个问题。但它每天回来一次 :(

请帮忙...

最佳答案

  1. 构建支持 New Relic 的项目
  2. 从终端/命令行运行 gradle --stop
  3. 打开未启用 NR 的应用并清理和重建
  4. 运行应用

如果您在非 NR 应用程序中仍然收到有关 New Relic 的消息,您可以转到 ~/.gradle/caches 并将其删除。然后再次尝试上述步骤。

较新版本的 gradle 使用缓存 New Relic 工具的守护进程。因此,这将停止守护进程并允许构建应用。

您还需要升级到最新版本的 New Relic。 2.426.0 落后了很多版本。去这里:http://docs.newrelic.com/docs/releases/android

关于android - 由于 newrelic 异常,应用程序在 onCreate 中崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24933298/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com