Open vacating opened 1 month ago
any solution for this, please help the android build is failing
@ryanheise bruv where are u ? we got issue here
I am having a same issue and cannot move forward!
ryanheise/audio_session/AndroidAudioManager.java:272: Error: Call requires API level 23 (current min is 16): android.media.AudioDeviceInfo#getId [NewApi]
"id", device.getId(),
~~~~~
Has anyone managed to fix this in a local repo or with config changes? I'm getting the same error plus another sdk mismatch with audio_service, which is making calls requiring API 31. I've been going in circles with different java versions, gradle versions, and gradle configs.
After migrating my Flutter project to the new plugin management method in settings.gradle, here , the audio_session plugin doesn’t respect the global minSdkVersion 23. Despite correctly setting the minSdkVersion in the app/build.gradle, the plugin triggers API-level mismatch errors (e.g., using getId() which requires API 23). This issue forces me to manually enforce the minSdkVersion in settings.gradle.
Steps to Reproduce:
eror we got :
audio_session-0.1.21\android\src\main\java\com\ryanheise\audio_session\AndroidAudioManager.java:272: Error: Call requires API level 23 (current min is 16): android.media.AudioDeviceInfo#getId [NewApi] "id", device.getId(),
@ryanheise