Skip to content
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

"audio_session Plugin Fails to Respect minSdkVersion 23 After Migration to settings.gradle Plugin Management #145

Open
vacating opened this issue Oct 19, 2024 · 3 comments

Comments

@vacating
Copy link

vacating commented Oct 19, 2024

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:

  1. Migrate to the new Flutter plugin management method.
  2. Set minSdkVersion 23 in app/build.gradle.
  3. Include the audio_session plugin.
  4. Run the build and observe the API level mismatch error.

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

@DurgeshSawantWYLD
Copy link

any solution for this, please help the android build is failing

@vacating
Copy link
Author

@ryanheise bruv where are u ? we got issue here

@khawjaahmad
Copy link

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(),
                               ~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants