Application crashes in onCreate due to newrelic exception

前端 未结 3 894
遥遥无期
遥遥无期 2021-01-05 13:16

I\'ve created an Android app using Android Studio beta 0.8.2 and all was going well until the last few days when i started getting this exception just as i run it:



        
相关标签:
3条回答
  • 2021-01-05 13:50

    The thing that fixed for me was upgrading to the newest gradle version 2.1 and android plugin version to 0.13.3 from right click project folder -> module settings

    enter image description here

    0 讨论(0)
  • 2021-01-05 14:10

    If you still get messages about New Relic in your non-NR app, you can go to the project directory and remove .gradle directory and re-build project.

    0 讨论(0)
  • 2021-01-05 14:12
    1. Build your New Relic enabled project
    2. Run gradle --stop from the terminal/command line
    3. Open your non-NR enabled app and clean & rebuild
    4. Run the app

    If you still get messages about New Relic in your non-NR app, you can go to the ~/.gradle/caches and remove it. Then try the above steps again.

    Newer versions of gradle utilize a daemon which caches New Relic instrumentation. So this will stop the daemon and allow the app to build.

    You will also want to upgrade to the latest version of New Relic. 2.426.0 is many versions behind. Go here: http://docs.newrelic.com/docs/releases/android

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