Application crashes in onCreate due to newrelic exception

被刻印的时光 ゝ 提交于 2019-11-30 21:29:53

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

  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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!