newrelic / newrelic-react-native-agent

New Relic Mobile Agent SDK for React-Native Applications
Apache License 2.0
16 stars 21 forks source link

No virtual method stop()Z in class Lcom/newrelic/agent/android/ndk/AgentNDK; or its super classes (declaration of 'com.newrelic.agent.android.ndk.AgentNDK' appears in /data/app/~~4MCTCLx4S1im03NbkvLoZA==/com.adaptedmind.mobile-n--cX-mCUAL0oqY6lZzaKQ==/base.apk!classes3.dex) #199

Closed ethanneff closed 1 day ago

ethanneff commented 1 week ago

getting production crashes when upgrading from 1.4.1 to 1.4.3

NoSuchMethodError
No virtual method stop()Z in class Lcom/newrelic/agent/android/ndk/AgentNDK; or its super classes (declaration of 'com.newrelic.agent.android.ndk.AgentNDK' appears in /data/app/~~4MCTCLx4S1im03NbkvLoZA==/com.adaptedmind.mobile-n--cX-mCUAL0oqY6lZzaKQ==/base.apk!classes3.dex)
ethanneff commented 1 week ago

this package is not stable

Screenshot 15

jamesmcn1 commented 1 week ago

This is also happening for us. Its affecting a large number of users

ndesai-newrelic commented 1 week ago

@ethanneff can you check newrelic ndk and newrelic android agent version for this? it should be 1.1.1 and 7.5.1 for react native agent version 1.4.3.

jamesmcn1 commented 1 week ago

I am getting these crashes with:

"newrelic-react-native-agent": "1.4.1",

classpath "com.newrelic.agent.android:agent-gradle-plugin:7.5.0"

ndesai-newrelic commented 1 week ago

@jamesmcn1 we fixed this issue in 1.4.4.

you can find detailed explanation for this issue here. https://github.com/newrelic/newrelic-react-native-agent/issues/195#issuecomment-2327422787

ndesai-newrelic commented 1 week ago

@ethanneff please update it to 1.4.4.

ethanneff commented 1 week ago

We deleted New Relic and migrated to Sentry. We cannot risk this again.