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

Unhandled Exception: MissingPluginException(No implementation found for method play on channel xyz.luan/audioplayers) #519

Closed
jacobtye opened this issue May 2, 2020 · 6 comments

Comments

@jacobtye
Copy link

jacobtye commented May 2, 2020

Error when trying to use audioplayers on flutter linux
code:

Future speak(String speech) async {
    try {
      clientViaServiceAccount(_credentials, _SCOPES).then((http_client) {
        var tts = new TexttospeechApi(http_client);
        var ttsResource = tts.text;
        var request = SynthesizeSpeechRequest();
        var input = SynthesisInput();
        var audio = AudioConfig();
        var voice = VoiceSelectionParams();
        voice.languageCode = "en-US";
        voice.ssmlGender = "NEUTRAL";
        audio.audioEncoding = "MP3";
        request.audioConfig = audio;
        request.voice = voice;
        input.text = speech;
        request.input = input;
        ttsResource.synthesize(request).then(
          (value) {
            SynthesizeSpeechResponse response = value;
            Uint8List bytes = Uint8List.fromList(response.audioContentAsBytes);
            var result =
                audioPlayer.play("https://www.kozco.com/tech/organfinale.mp3");

            // _player.play();
            // print(response.audioContentAsBytes);
          },
        );
      });
    } catch (e) {
      print("Error");
    }
  }

(the url was to test it before I used the audio that I got from the google api)
this is what the output was:

[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method play on channel xyz.luan/audioplayers)
#0      MethodChanthinknel._invokeMethod (package:flutter/src/services/platform_channel.dart:154:7)
<asynchronous suspension>
#1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:329:12)
#2      AudioPlayer._invokeMethod (package:audioplayers/audioplayers.dart:319:10)
#3      AudioPlayer.play (package:audioplayers/audioplayers.dart:380:30)
#4      Controls.speak.<anonymous closure>.<anonymous closure> (package:flutter_faces/controls.dart:63:29)
#5      _rootRunUnary (dart:async/zone.dart:1155:38)
#6      _CustomZone.runUnary (dart:async/zone.dart:1048:19)
#7      _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#8      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#9      Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#10     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#11     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:34:15)
#12     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:295:13)
#13     ApiRequester.request (package:_discoveryapis_commons/src/clients.dart)
<asynchronous suspension>
#14     TextResourceApi.synthesize (package:googleapis/texttospeech/v1.dart:79:32)
#15     Controls.speak.<anonymous closure> (package:flutter_faces/controls.dart:58:21)
#16     _rootRunUnary (dart:async/zone.dart:1155:38)
#17     _CustomZone.runUnary (dart:async/zone.dart:1048:19)
#18     _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#19     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#20     Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#21     Future._completeWithValue (dart:async/future_impl.dart:526:5)
#22     _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:34:15)
#23     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:295:13)
#24     clientViaServiceAccount (package:googleapis_auth/auth_io.dart)
<asynchronous suspension>
#25     Controls.speak (package:flutter_faces/controls.dart:44:7)
#26     Controls.build (package:flutter_faces/controls.dart:115:5)
#27     StatelessElement.build (package:flutter/src/widgets/framework.dart:4576:28)
#28     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4502:15)
#29     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#30     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#31     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#32     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#33     MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5947:32)
#34     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#35     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#36     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#37     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#38     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#39     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#40     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#41     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#42     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#43     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#44     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#45     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#46     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#47     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#48     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#49     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#50     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#51     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#52     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#53     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#54     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#55     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#56     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#57     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#58     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#59     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#60     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#61     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#62     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#63     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#64     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#65     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#66     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#67     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#68     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#69     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#70     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#71     MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5947:32)
#72     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#73     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#74     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#75     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#76     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#77     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#78     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#79     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#80     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#81     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#82     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#83     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#84     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#85     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#86     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#87     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#88     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#89     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#90     Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#91     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#92     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#93     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#94     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#95     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#96     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#97     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#98     Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#99     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#100    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#101    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#102    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#103    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#104    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#105    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#106    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#107    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#108    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#109    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#110    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#111    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#112    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#113    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#114    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#115    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#116    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#117    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#118    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#119    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#120    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#121    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#122    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#123    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#124    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#125    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#126    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#127    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#128    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#129    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#130    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#131    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#132    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#133    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#134    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#135    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#136    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#137    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#138    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#139    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#140    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#141    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#142    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#143    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#144    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#145    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#146    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#147    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#148    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#149    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#150    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#151    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#152    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#153    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#154    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#155    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#156    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#157    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#158    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#159    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#160    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#161    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#162    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#163    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#164    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#165    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#166    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#167    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#168    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#169    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#170    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#171    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#172    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#173    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#174    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#175    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#176    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#177    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#178    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#179    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#180    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#181    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#182    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#183    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#184    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#185    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#186    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#187    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#188    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#189    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#190    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#191    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#192    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#193    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#194    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#195    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#196    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#197    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#198    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#199    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#200    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#201    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#202    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#203    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#204    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#205    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#206    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#207    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#208    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#209    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#210    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#211    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#212    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#213    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#214    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#215    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#216    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#217    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#218    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#219    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#220    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#221    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#222    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#223    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#224    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#225    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#226    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#227    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#228    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#229    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#230    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#231    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#232    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#233    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#234    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#235    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#236    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#237    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#238    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#239    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#240    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#241    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#242    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#243    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#244    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#245    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#246    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#247    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#248    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#249    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#250    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#251    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#252    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#253    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#254    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#255    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#256    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#257    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#258    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#259    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#260    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#261    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#262    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#263    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#264    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#265    MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5947:32)
#266    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#267    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#268    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#269    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#270    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#271    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#272    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#273    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#274    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#275    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#276    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#277    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#278    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#279    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#280    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#281    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#282    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#283    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#284    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#285    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#286    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#287    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#288    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#289    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#290    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#291    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#292    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#293    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#294    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#295    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#296    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#297    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#298    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#299    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#300    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#301    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#302    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#303    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#304    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#305    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#306    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#307    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#308    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#309    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#310    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#311    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#312    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#313    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#314    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#315    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#316    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#317    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#318    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#319    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#320    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#321    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#322    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#323    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#324    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#325    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#326    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#327    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#328    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#329    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#330    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#331    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#332    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#333    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#334    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#335    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#336    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#337    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#338    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#339    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#340    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#341    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#342    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#343    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#344    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#345    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#346    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#347    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#348    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#349    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#350    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#351    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#352    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#353    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#354    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#355    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#356    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#357    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#358    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#359    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#360    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#361    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#362    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#363    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#364    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#365    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#366    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#367    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#368    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#369    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#370    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#371    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#372    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#373    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#374    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#375    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#376    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#377    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#378    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#379    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#380    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#381    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#382    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#383    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#384    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#385    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#386    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#387    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#388    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#389    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#390    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#391    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#392    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#393    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#394    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#395    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#396    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#397    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#398    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#399    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#400    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#401    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#402    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#403    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#404    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#405    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#406    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#407    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#408    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#409    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#410    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#411    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#412    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#413    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#414    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#415    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#416    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#417    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#418    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#419    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#420    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#421    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#422    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#423    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#424    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#425    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#426    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#427    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#428    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#429    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#430    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#431    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#432    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#433    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#434    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#435    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#436    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#437    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#438    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#439    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#440    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#441    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#442    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#443    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#444    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#445    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#446    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#447    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#448    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#449    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#450    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#451    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#452    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5830:14)
#453    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#454    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#455    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#456    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#457    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#458    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#459    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#460    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#461    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#462    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#463    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#464    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#465    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#466    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#467    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#468    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#469    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#470    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#471    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#472    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#473    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#474    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#475    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#476    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#477    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#478    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#479    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#480    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#481    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#482    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#483    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#484    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#485    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#486    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#487    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#488    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#489    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#490    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#491    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#492    StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4675:11)
#493    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#494    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#495    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4666:11)
#496    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#497    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#498    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#499    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#500    _InheritedProviderScopeMixin.performRebuild (package:provider/src/inherited_provider.dart:220:11)
#501    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#502    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#503    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#504    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#505    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#506    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#507    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#508    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#509    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#510    SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
#511    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#512    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#513    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#514    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#515    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#516    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#517    _NestedHookElement.mount (package:nested/nested.dart:188:11)
#518    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#519    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#520    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#521    _InheritedProviderScopeMixin.performRebuild (package:provider/src/inherited_provider.dart:220:11)
#522    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#523    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#524    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#525    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#526    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#527    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#528    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#529    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#530    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#531    SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
#532    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#533    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#534    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#535    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#536    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#537    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#538    _NestedHookElement.mount (package:nested/nested.dart:188:11)
#539    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#540    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#541    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#542    _InheritedProviderScopeMixin.performRebuild (package:provider/src/inherited_provider.dart:220:11)
#543    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#544    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#545    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#546    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#547    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#548    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#549    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#550    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#551    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#552    SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
#553    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#554    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#555    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#556    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#557    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#558    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#559    _NestedHookElement.mount (package:nested/nested.dart:188:11)
#560    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#561    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#562    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#563    _InheritedProviderScopeMixin.performRebuild (package:provider/src/inherited_provider.dart:220:11)
#564    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#565    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#566    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#567    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#568    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#569    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#570    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#571    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#572    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#573    SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
#574    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#575    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#576    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#577    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#578    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#579    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#580    _NestedHookElement.mount (package:nested/nested.dart:188:11)
#581    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#582    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#583    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#584    _InheritedProviderScopeMixin.performRebuild (package:provider/src/inherited_provider.dart:220:11)
#585    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#586    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#587    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#588    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#589    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#590    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#591    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#592    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#593    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#594    SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
#595    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#596    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#597    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#598    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#599    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#600    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#601    _NestedHookElement.mount (package:nested/nested.dart:188:11)
#602    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#603    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#604    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#605    _InheritedProviderScopeMixin.performRebuild (package:provider/src/inherited_provider.dart:220:11)
#606    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#607    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#608    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#609    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#610    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#611    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#612    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#613    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#614    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#615    SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
#616    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#617    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#618    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#619    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#620    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#621    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#622    _NestedHookElement.mount (package:nested/nested.dart:188:11)
#623    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#624    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#625    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#626    _InheritedProviderScopeMixin.performRebuild (package:provider/src/inherited_provider.dart:220:11)
#627    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#628    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#629    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#630    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#631    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#632    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#633    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#634    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#635    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#636    SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
#637    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#638    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#639    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#640    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#641    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#642    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#643    _NestedHookElement.mount (package:nested/nested.dart:188:11)
#644    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#645    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#646    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#647    _InheritedProviderScopeMixin.performRebuild (package:provider/src/inherited_provider.dart:220:11)
#648    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#649    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#650    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#651    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#652    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#653    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#654    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#655    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#656    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#657    SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
#658    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#659    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#660    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#661    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#662    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#663    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#664    _NestedHookElement.mount (package:nested/nested.dart:188:11)
#665    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#666    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#667    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#668    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#669    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#670    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#671    SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
#672    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#673    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#674    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#675    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#676    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#677    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#678    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#679    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#680    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#681    _InheritedProviderScopeMixin.performRebuild (package:provider/src/inherited_provider.dart:220:11)
#682    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#683    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#684    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#685    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#686    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#687    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#688    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#689    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#690    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#691    SingleChildWidgetElementMixin.mount (package:nested/nested.dart:223:11)
#692    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#693    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#694    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4527:16)
#695    Element.rebuild (package:flutter/src/widgets/framework.dart:4218:5)
#696    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4481:5)
#697    ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#698    Element.inflateWidget (package:flutter/src/widgets/framework.dart:3446:14)
#699    Element.updateChild (package:flutter/src/widgets/framework.dart:3214:18)
#700    RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1148:16)
#701    RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1119:5)
#702    RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:1061:17)
#703    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2607:19)
#704    RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1060:13)
#705    WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:941:7)
#706    WidgetsBinding.scheduleAttachRootWidget.<anonymous closure> (package:flutter/src/widgets/binding.dart:922:7)
#707    _rootRun (dart:async/zone.dart:1143:38)
#708    _CustomZone.run (dart:async/zone.dart:1040:19)
#709    _CustomZone.runGuarded (dart:async/zone.dart:942:7)
#710    _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:982:23)
#711    _rootRun (dart:async/zone.dart:1147:13)
#712    _CustomZone.run (dart:async/zone.dart:1040:19)
#713    _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:966:23)
#714    Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:23:15)
#715    _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#716    _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
@luanpotter
Copy link
Member

Hi,

this seems to be a problem with flutter/pub themselves. can you please try running:

flutter clean
flutter pub get

again?

also if the problem persists please provide:

  • flutter version
  • audioplayers version
  • other libraries you use (pub dependencies)
  • what platform you are running the code on and version (android, ios, web)

@heibor
Copy link

heibor commented May 4, 2020

Hi,
I am using Flutter 1.15.17, when I play a mp3 file in remote:

            _audioPlayer = AudioPlayer();
            int res = await _audioPlayer.play("https://192.168.1.66/$sUrl");
            //await _audioPlayer.play("http://192.168.1.5/00001.mp3");
            if (res == 1) {
              print("ok");
            } else {
              print("failed");
            }

I am developing my app in Andriod. When I running my app, I got these messages:

E/MediaPlayerNative(16745): error (1, -2147483648)
E/MediaPlayer(16745): Error (1,-2147483648)
E/MediaPlayerNative(16745): stop called in state 0, mPlayer(0x96942c00)
E/MediaPlayerNative(16745): error (-38, 0)
V/MediaPlayer(16745): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(16745): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer(16745): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(16745): cleanDrmObj: mDrmObj=null mDrmSessionId=null
I/flutter (16745): https://192.168.1.66/staff/textsound/13/bb31ba67.mp3
V/MediaHTTPService(16745): MediaHTTPService(android.media.MediaHTTPService@7d314c): Cookies: null
V/MediaHTTPService(16745): makeHTTPConnection: CookieHandler (java.net.CookieManager@f6855f9) exists.
V/MediaHTTPService(16745): makeHTTPConnection(android.media.MediaHTTPService@7d314c): cookieHandler: java.net.CookieManager@f6855f9 Cookies: null
E/flutter (16745): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Reading static variable '_channel@32020947' during its initialization
E/flutter (16745): #0      AudioPlayer._channel (package:audioplayers/audioplayers.dart:131:30)
E/flutter (16745): #1      AudioPlayer._invokeMethod (package:audioplayers/audioplayers.dart:318:12)
E/flutter (16745): #2      AudioPlayer.release (package:audioplayers/audioplayers.dart:441:30)
E/flutter (16745): #3      AudioPlayer._doHandlePlatformCall (package:audioplayers/audioplayers.dart:553:23)
E/flutter (16745): #4      AudioPlayer.platformCallHandler (package:audioplayers/audioplayers.dart:538:7)
E/flutter (16745): #5      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:409:55)
E/flutter (16745): #6      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:377:54)
E/flutter (16745): #7      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:199:33)
E/flutter (16745): #8      _DefaultBinaryMessenger.setMessageHandler.<anonymous closure> (package:flutter/src/services/binding.dart:233:13)
E/flutter (16745): #9      ChannelBuffers.drain (dart:ui/channel_buffers.dart:188:21)
E/flutter (16745): #10     _DefaultBinaryMessenger.setMessageHandler (package:flutter/src/services/binding.dart:232:23)
E/flutter (16745): #11     MethodChannel.setMethodCallHandler (package:flutter/src/services/platform_channel.dart:375:21)
E/flutter (16745): #12     AudioPlayer._channel (package:audioplayers/audioplayers.dart:133:11)
E/flutter (16745): #13     AudioPlayer._channel (package:audioplayers/audioplayers.dart:131:30)
E/flutter (16745): #14     AudioPlayer._invokeMethod (package:audioplayers/audioplayers.dart:318:12)
E/flutter (16745): #15     AudioPlayer.play (package:audioplayers/audioplayers.dart:380:30)
E/flutter (16745): #16     _TextReaderState._textSound.<anonymous closure>.<anonymous closure> (package:ex07/text_reader.dart:180:46)
E/flutter (16745): #17     _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:779:14)
E/flutter (16745): #18     _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:862:36)
E/flutter (16745): #19     GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
E/flutter (16745): #20     TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:486:11)
E/flutter (16745): #21     BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:264:5)
E/flutter (16745): #22     BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:199:7)
E/flutter (16745): #23     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:470:9)
E/flutter (16745): #24     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:76:12)
E/flutter (16745): #25     PointerRouter._dispatchEventToRoutes.<anonymous closure> (package:flutter/src/gestures/pointer_router.dart:117:9)
E/flutter (16745): #26     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
E/flutter (16745): #27     PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:115:18)
E/flutter (16745): #28     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:7)
E/flutter (16745): #29     GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19)
E/flutter (16745): #30     GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
E/flutter (16745): #31     GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
E/flutter (16745): #32     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
E/flutter (16745): #33     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
E/flutter (16745): #34     _rootRunUnary (dart:async/zone.dart:1138:13)
E/flutter (16745): #35     _CustomZone.runUnary (dart:async/zone.dart:1031:19)
E/flutter (16745): #36     _CustomZone.runUnaryGuarded (dart:async/zone.dart:933:7)
E/flutter (16745): #37     _invoke1 (dart:ui/hooks.dart:275:10)
E/flutter (16745): #38     _dispatchPointerDataPacket (dart:ui/hooks.dart:184:5)
E/flutter (16745): 
I/flutter (16745): ok
E/MediaPlayerNative(16745): error (1, -2147483648)
E/MediaPlayer(16745): Error (1,-2147483648)
E/MediaPlayerNative(16745): stop called in state 0, mPlayer(0x969ab220)
E/MediaPlayerNative(16745): error (-38, 0)
V/MediaPlayer(16745): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(16745): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer(16745): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(16745): cleanDrmObj: mDrmObj=null mDrmSessionId=null

Sometime, I got these messages:

Performing hot restart...                                               
Restarted application in 1,937ms.
I/flutter (16745): https://192.168.1.66/staff/textsound/13/bb31ba67.mp3
V/MediaHTTPService(16745): MediaHTTPService(android.media.MediaHTTPService@71b5595): Cookies: null
V/MediaHTTPService(16745): makeHTTPConnection: CookieHandler (java.net.CookieManager@f6855f9) exists.
V/MediaHTTPService(16745): makeHTTPConnection(android.media.MediaHTTPService@71b5595): cookieHandler: java.net.CookieManager@f6855f9 Cookies: null
I/flutter (16745): ok
E/MediaPlayerNative(16745): error (1, -2147483648)
E/MediaPlayer(16745): Error (1,-2147483648)
E/MediaPlayerNative(16745): stop called in state 0, mPlayer(0x96c29c60)
E/MediaPlayerNative(16745): error (-38, 0)
V/MediaPlayer(16745): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(16745): cleanDrmObj: mDrmObj=null mDrmSessionId=null
V/MediaPlayer(16745): resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer(16745): cleanDrmObj: mDrmObj=null mDrmSessionId=null

There is no any sound.

When I run flutter doctor -v, the environment is:

[✓] Flutter (Channel beta, v1.15.17, on Mac OS X 10.15.4 19E287, locale zh-Hans-CN)
• Flutter version 1.15.17 at /Users/zhen/app/flutter
• Framework revision 2294d75bfa (8 周前), 2020-03-07 00:28:38 +0900
• Engine revision 5aff311948
• Dart version 2.8.0 (build 2.8.0-dev.12.0 9983424a3c)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/zhen/app/android-sdk-macosx
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 28.0.3
• ANDROID_HOME = /Users/zhen/app/android-sdk-macosx
• Java binary at: /Users/zhen/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 11.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.4.1, Build version 11E503a
✗ CocoaPods installed but not working.
You appear to have CocoaPods installed but it is not working.
This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
This can usually be fixed by re-installing CocoaPods. For more info, see flutter/flutter#14293.
To re-install CocoaPods, run:
sudo gem install cocoapods

[✓] Android Studio (version 3.6)
• Android Studio at /Users/zhen/Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[!] IntelliJ IDEA Community Edition (version 2019.2.2)
• IntelliJ at /Users/zhen/Applications/IntelliJ IDEA CE.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
• Dart plugin version 192.6603.23
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins

[!] VS Code (version 1.38.1)
• VS Code at /Users/zhen/Applications/Visual Studio Code.app/Contents
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
• A0001 • 6522b35d • android-arm • Android 9 (API 28)

! Doctor found issues in 3 categories.

What is the problem?

@jacobtye
Copy link
Author

jacobtye commented May 7, 2020

I was building a Linux application with flutter, I realized that there are no libraries for playing audio with Linux so I created an ffi to do it

@maks
Copy link

maks commented Mar 15, 2021

@jacobtye did you end up publishing your FFI binding for playing audio on Linux?

@om-ha
Copy link
Contributor

om-ha commented Oct 30, 2021

This issue (#519) and its duplicate (#518) essentially mentioned every single issue in the repo. Idk why GItHub did this even though #518 and #519 were mentioned within a code block.

Theoretically they are just debug data, in reality they mentioned all GitHub issues.

@EhabSalah
Copy link

  1. Open the ios project from Runner.xcworkspace not from Runner.xcodeproj.
  2. Make sure that you select real device not simulator before start build.

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

6 participants