Skip to content Skip to sidebar Skip to footer

Application Crashes In Oncreate Due To Newrelic Exception

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: 07-24 14:50:1

Solution 1:

  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

Solution 2:

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

Solution 3:

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.

Post a Comment for "Application Crashes In Oncreate Due To Newrelic Exception"