New Relic Android agent error with gradle

前端 未结 3 1856
一整个雨季
一整个雨季 2021-02-14 22:00

I have a project that uses the gradle build system and I\'m willing to add New Relic monitoring to it.

The project (including New Relic) is working fine on Linux (Fedor

相关标签:
3条回答
  • 2021-02-14 22:36

    There's a new version of new relic client available. It resolves issues that V3.361.0 had around newer JDKs and proguard. Here's what you should use to resolve the JDK problem.

    classpath 'com.newrelic.agent.android:agent-gradle-plugin:3.378.0'
    

    Paste this into your build.gradle where you have listed your dependencies. Let me know if it doesn't work.

    0 讨论(0)
  • 2021-02-14 22:38

    Unfortunately u55 introduced a change that breaks the New Relic agent. For now, if possible, use an older version of Java to work around this issue while building. This shouldn't affect the resulting APK. New Relic is aware of this issue and is working to fix it as fast as possible.

    0 讨论(0)
  • 2021-02-14 22:43

    I emailed New Relic support, and I got the following response:

    Hello,

    Thanks for writing into New Relic support.

    A new version of the New Relic for Mobile Apps Android SDK is in beta and includes a fix for compatibility with JDK v7u55 and JDK v8

    It is available here: https://gist.github.com/asm/bed819fb32253e4cb072.

    We're waiting to release this agent until we hear from users like you that the SDK is running smoothly and instrumentation is now working correctly.

    Please let us know if you have any trouble installing this SDK.

    I'm going to leave this ticket open so that you can send us an update. Our automatic system will ping you to see how you're doing in a few days and then try to close the ticket a few days after that. If it does, don't worry, write back any time and we'll get right to helping you.

    0 讨论(0)
提交回复
热议问题