-
-
Notifications
You must be signed in to change notification settings - Fork 267
Description
Platform
Flutter Mobile Android
Obfuscation
Enabled
Debug Info
Enabled
Doctor
[!] Flutter (Channel [user-branch], 3.32.2, on macOS 15.1.1 24B91 darwin-arm64, locale en-DE) [618ms]
! Flutter version 3.32.2 on channel [user-branch] at /Users/vince/flutter
Currently on an unknown channel. Run flutter channel
to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
! Upstream repository unknown source is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
• Framework revision 8defaa71a7 (3 weeks ago), 2025-06-04 11:02:51 -0700
• Engine revision 1091508939
• Dart version 3.8.1
• DevTools version 2.45.1
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [3.9s]
• Android SDK at /Users/vince/Library/Android/sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: /opt/homebrew/Cellar/openjdk@17/17.0.13/bin/java
This JDK is specified in your Flutter configuration.
To change the current JDK, run: flutter config --jdk-dir="path/to/jdk"
.
• Java version OpenJDK Runtime Environment Homebrew (build 17.0.14+0)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1) [1,229ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16B40
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [90ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2) [90ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
[✓] IntelliJ IDEA Community Edition (version 2024.2.3) [88ms]
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 82.0.3
• Dart plugin version 242.22855.32
[✓] VS Code (version 1.96.4) [11ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.102.0
[✓] Connected device (3 available) [7.3s]
• Pixel 6 (mobile) • 1A151FDF6004Y7 • android-arm64 • Android 15 (API 35)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.1.1 24B91 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 137.0.7151.120
! Error: Browsing on the local area network for Vince’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources [319ms]
• All expected network resources are available.
! Doctor found issues in 1 category.
Version
9.0.0
Steps to Reproduce
Install 9.0.0
or later version of Flutter Sentry on Android, try to initialize the SDK and try to log events on an Android device.
Expected Result
Sentry initializes correctly on Android with the latest stable 9.x.y
releases, and our mobile clients can send events to Sentry.
Actual Result
Since upgrading to 9.0.0 (I tried 9.0.0-RC.3
, 9.0.0
, 9.1.0
), initializing the Sentry SDK doesn't work for Android.
I might be missing something, as I'd not expect such a grave issue still present in the upgrade, but everything so far points towards it being an upgrade issue.
We get the following error when the Sentry SDK is initialized, and all subsequent calls to log events fails, too.
F/Sentry (23352): The Sentry SDK has been configured with mixed versions. Expected maven:io.sentry:sentry-android-fragment to match core SDK version 8.12.0 but was 8.11.1
F/Sentry (23352): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
F/Sentry (23352): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
F/Sentry (23352): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
F/Sentry (23352): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
D/Sentry (23352): Not initializing Sentry because mixed SDK versions have been detected.
E/MethodChannel#sentry_flutter(23352): Failed to handle method call
E/MethodChannel#sentry_flutter(23352): java.lang.IllegalStateException: Sentry SDK has detected a mix of versions. This is not supported and likely leads to crashes. Please always use the same version of all SDK modules (dependencies). See https://docs.sentry.io/platforms/android/troubleshooting/mixed-versions for more details.
E/MethodChannel#sentry_flutter(23352): at io.sentry.util.InitUtil.shouldInit(InitUtil.java:30)
E/MethodChannel#sentry_flutter(23352): at io.sentry.Sentry.init(Sentry.java:299)
E/MethodChannel#sentry_flutter(23352): at io.sentry.Sentry.init(Sentry.java:219)
E/MethodChannel#sentry_flutter(23352): at io.sentry.android.core.SentryAndroid.init(SentryAndroid.java:97)
E/MethodChannel#sentry_flutter(23352): at io.sentry.android.core.SentryAndroid.init(SentryAndroid.java:81)
E/MethodChannel#sentry_flutter(23352): at io.sentry.flutter.SentryFlutterPlugin.initNativeSdk(SentryFlutterPlugin.kt:150)
E/MethodChannel#sentry_flutter(23352): at io.sentry.flutter.SentryFlutterPlugin.onMethodCall(SentryFlutterPlugin.kt:85)
E/MethodChannel#sentry_flutter(23352): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
E/MethodChannel#sentry_flutter(23352): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
E/MethodChannel#sentry_flutter(23352): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
E/MethodChannel#sentry_flutter(23352): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
E/MethodChannel#sentry_flutter(23352): at android.os.Handler.handleCallback(Handler.java:991)
E/MethodChannel#sentry_flutter(23352): at android.os.Handler.dispatchMessage(Handler.java:102)
E/MethodChannel#sentry_flutter(23352): at android.os.Looper.loopOnce(Looper.java:232)
E/MethodChannel#sentry_flutter(23352): at android.os.Looper.loop(Looper.java:317)
E/MethodChannel#sentry_flutter(23352): at android.app.ActivityThread.main(ActivityThread.java:8934)
E/MethodChannel#sentry_flutter(23352): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#sentry_flutter(23352): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:591)
E/MethodChannel#sentry_flutter(23352): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
I tried it a couple of times, always failed with 9.x.y
, and never with 8.14.2
. AFAIK, there are no dependency caching issues, I tried to clean everything.
Are you willing to submit a PR?
No
Metadata
Metadata
Assignees
Labels
Type
Projects
Status