-
-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Didn't find class io.sentry.android.core.AppStateStart #3497
Comments
Hi, This is because the class was removed in sentry-android 7.1.0, therefore sentry-react-native is not compatible with that version. If you disable the Android SDK autoInstallation you should get the React native SDK compatible version, like this: apply plugin: "io.sentry.android.gradle"
sentry {
autoInstallation {
enabled = false
}
} @ sentry team, I think the docs for Manual Setup could be a more explicit on this point. The suggestion to disable autoInstallation is buried in the comment of a code snippet that is introduced as an example ("You can configure the plugin options..."), when it should probably be a required step for the default manual setup. |
I'm experiencing the same issue and after trying @facugaich workaround it is still crashing for me. Sentry version: Error when using @facugaich's workaround:
EDIT: Downgrading the android plugin from - classpath("io.sentry:sentry-android-gradle-plugin:4.1.1")
+ classpath("io.sentry:sentry-android-gradle-plugin:3.11.1") |
Hey all, thanks for reporting this and the helpful details and workarounds 🙏 we'll investigate and follow up here |
Thank you @facugaich and @focux for sharing your workarounds. For anyone new reading this issue, here is a summary of what to do:
buildscript {
// ...
dependencies {
classpath("io.sentry:sentry-android-gradle-plugin:3.11.1")
}
}
apply plugin: "io.sentry.android.gradle"
sentry {
autoInstallation {
enabled = false
}
} We will close this issue since the RN SDK shipped bundled with a compatible |
Now that |
I couldn't deactivate autoInstallation, is there any forecast for a new release with this fix? |
@vipulrawat Sentry React Native will include the v7 soon. @guilhermeadsferreira Could you elaborate on why you can't disable the autoInstall? |
@krystofwoldrich Is there a way to disable the autoInstallation for Expo projects? Our app is crashing and we cannot seem to disable it :( |
Getting this error after upgrading to @sentry/react-native 5.15.2. We are manually initializing the SDK from native code, rather than javascript, to catch app start crashes.
I can't seem to find a reference to this class in this library or in the sentry-java library.
Any help would be appreciated!!!
The text was updated successfully, but these errors were encountered: