Issue
I'm updating my Android SDK version and dependencies (ex. io.sentry:sentry-android and io.sentry:sentry-okhttp), and my application crashes with the below error:
java.lang.NoSuchMethodError: No static method addIntegrationToSdkVersion(Ljava/lang/Class;)V in class Lio/sentry/util/IntegrationUtils; or its super classes (declaration of 'io.sentry.util.IntegrationUtils' appears in /data/app/~~ZN6nloTWadEhpVq1MdGABQ==/be.aion.android.app.uat-Cj7KjGSc5mQt2bBkwllkwQ==/base.apk!classes37.dex)
Applies To
- Users using the Android SDK
Symptoms
- Application crashing with error: java.lang.NoSuchMethodError: No static method addIntegrationToSdkVersion
Resolution
This can occur due to a version mismatch between different Sentry dependencies or incompatible versions. You'll want to ensure all Sentry dependencies are on the same version. Please see Sentry Integrations Version Compatibility for more information.