React native Error

  • implementation “com.newrelic.agent.android:android-agent:5.+”
    I added plugin : " apply plugin: ‘newrelic’ " then I rebuild , android studio showing error:

Type com.bugfender.react.BuildConfig is defined multiple times: …/android/app/build/intermediates/transforms/newrelicTransform/release/150.jar:com/bugfender/react/BuildConfig.class,
…/android/app/build/intermediates/transforms/newrelicTransform/release/156.jar:com/bugfender/react/BuildConfig.class

  • I remoted plugin and rebuild, its successfully(sorry, my English not good).

It looks like you’ve also posted this in Github issues, so hopefully one of our engineers can take a closer look.

There may be some useful troubleshooting steps here:

You can also take a look at any messages from the agent by enabling the logging feature:
https://docs.newrelic.com/docs/using-new-relic/cross-product-functions/troubleshooting/generate-new-relic-agent-logs-troubleshooting

you can try this package. I wrote for RN ios + android. with full doc and easy to setup. https://github.com/huynqbibabo/react-native-newrelic.

Thanks for the recommendation @huynq1! :slightly_smiling_face: