bluefireteam / audioplayers

A Flutter package to play multiple audio files simultaneously (Android/iOS/web/Linux/Windows/macOS)
https://pub.dartlang.org/packages/audioplayers
MIT License
2.01k stars 845 forks source link

Deprecated in the new Beta. #667

Closed meghead closed 3 years ago

meghead commented 4 years ago

Seems audio player is deprecated when using in Flutter's latest Beta. I'm using the following in Android Studio;

Flutter 1.23.0-18.1.pre • channel beta • https://github.com/flutter/flutter.git Framework • revision 198df796aa (3 weeks ago) • 2020-10-15 12:04:33 -0700 Engine • revision 1d12d82d9c Tools • Dart 2.11.0 (build 2.11.0-213.1.beta)

Here's what I'm getting in the console;

C:\flutter.pub-cache\hosted\pub.dartlang.org\audioplayers-0.16.2\android\src\main\java\xyz\luan\audioplayers\AudioplayersPlugin.java:18: warning: [deprecation] PluginRegistry in io.flutter.plugin.common has been deprecated import io.flutter.plugin.common.PluginRegistry.Registrar; ^ C:\flutter.pub-cache\hosted\pub.dartlang.org\audioplayers-0.16.2\android\src\main\java\xyz\luan\audioplayers\AudioplayersPlugin.java:18: warning: [deprecation] PluginRegistry in io.flutter.plugin.common has been deprecated import io.flutter.plugin.common.PluginRegistry.Registrar; ^ 2 warnings Note: C:\flutter.pub-cache\hosted\pub.dartlang.org\flutter_audio_recorder-0.5.5\android\src\main\java\com\zeno\flutter_audio_recorder\FlutterAudioRecorderPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

kennaruk commented 4 years ago

I'm getting the same issue

L0p3zV4rg4s commented 4 years ago

Yeah, same issue here

Korrigierer commented 4 years ago

Same

markleavitt commented 4 years ago

Same issue, identical environment

WinKyawt commented 4 years ago

same issue

eebeeDEV commented 3 years ago

same here, version 1.24.0-10.2.pre Dec 15

mps01 commented 3 years ago

same issue version: Flutter 1.25.0-8.1.pre

DenisTis commented 3 years ago

Yes, apart from being deprecated, it already does not play sounds on real device :(

erickzanardo commented 3 years ago

Closing this due to reports of this being fixed on newer versions. Feel free to open a new issue in case of this still happening