[Health 10.2.0] Android Incompatibility with audio service
Device / Emulator and OS
Device: [e.g. Moto G20, Pixel 7 Api 34]
OS: [e.g. Android 11 arm-64]
Describe the bug
The Android app wont compile after upgrading to Health 10.2.0 i do use audio_service and audio_session from ryanheise
To Reproduce
Lastest Stable Flutter version
Add Health 10.2.0
Add Audio service and audio session
Expected behavior
It should compile the app
Actual behavior
It didnt compile and showed this
Caused by: java.lang.ClassCastException: com.ryanheise.audioservice.AudioServiceActivity cannot be cast to androidx.activity.ComponentActivity
E/AndroidRuntime(31118): at cachet.plugins.health.HealthPlugin.onAttachedToActivity(HealthPlugin.kt:2418)
Flutter doctor
[✓] Flutter (Channel stable, 3.19.1, on macOS 13.6.3 22G436 darwin-arm64, locale en-CO)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.91.1)
[✓] Connected device (4 available)
! Error: Browsing on the local area network for Apple Watch de Shirley juliana. Ensure the device is unlocked and discoverable via Bluetooth.
(code -27)
! Error: Browsing on the local area network for sabowsla’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
[Health 10.2.0] Android Incompatibility with audio service
Device / Emulator and OS
Describe the bug
The Android app wont compile after upgrading to Health 10.2.0 i do use audio_service and audio_session from ryanheise
To Reproduce
Lastest Stable Flutter version Add Health 10.2.0 Add Audio service and audio session
Expected behavior
It should compile the app
Actual behavior
It didnt compile and showed this Caused by: java.lang.ClassCastException: com.ryanheise.audioservice.AudioServiceActivity cannot be cast to androidx.activity.ComponentActivity E/AndroidRuntime(31118): at cachet.plugins.health.HealthPlugin.onAttachedToActivity(HealthPlugin.kt:2418)
Flutter doctor
[✓] Flutter (Channel stable, 3.19.1, on macOS 13.6.3 22G436 darwin-arm64, locale en-CO) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.2) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] VS Code (version 1.91.1) [✓] Connected device (4 available) ! Error: Browsing on the local area network for Apple Watch de Shirley juliana. Ensure the device is unlocked and discoverable via Bluetooth. (code -27) ! Error: Browsing on the local area network for sabowsla’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
• No issues found!