cph-cachet / flutter-plugins

A collection of Flutter plugins developed by CACHET
554 stars 681 forks source link

[Health 10.2.0] Android Incompatibility with audio service #1006

Open jhonatan-3a opened 4 months ago

jhonatan-3a commented 4 months ago

[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!