After update the flutter version the plugin Just_audio has stopped working giving me these exceptions (sometimes the code stop before and return less errors):
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: (-1) unknown error
#0 AudioPlayer._load
package:just_audio/just_audio.dart:850
<asynchronous suspension>
#1 AudioPlayer._setPlatformActive.setPlatform
package:just_audio/just_audio.dart:1435
<asynchronous suspension>
#2 AudioPlayer.load
package:just_audio/just_audio.dart:780
<asynchronous suspension>
#3 AudioPlayer.setAudioSource
package:just_audio/just_audio.dart:755
<asynchronous suspension>
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method load on channel com.ryanheise.just_audio.methods.26d4c1e0-6fef-4ed1-8917-3ea8d6e473e8)
#0 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:313
<asynchronous suspension>
#1 MethodChannelAudioPlayer.load
package:just_audio_platform_interface/method_channel_just_audio.dart:58
<asynchronous suspension>
#2 AudioPlayer._load
package:just_audio/just_audio.dart:836
<asynchronous suspension>
#3 AudioPlayer.load
package:just_audio/just_audio.dart:780
<asynchronous suspension>
#4 AudioPlayer.setAudioSource
package:just_audio/just_audio.dart:755
<asynchronous suspension>
I have tried to clean the project and recover the plugin's versions of the previous code (that was working before the update)
I have tried in a real iPhone, restarted multiple times the computer, the IDE.
I have updated the plugins to the last version.
Can anyone tell me what can be the problem? I am trying to check for other plugins but if the code that was working before is not working now just with the flutter update...
Related
I am adding a Flutter module to a native iOS app and receiving the following exception:
[VERBOSE-2:ui_dart_state.cc(198)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null)
#0 FirebaseCoreHostApi.initializeCore (package:firebase_core_platform_interface/src/pigeon/messages.pigeon.dart:205:7)
<asynchronous suspension>
#1 MethodChannelFirebase._initializeCore (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:29:44)
<asynchronous suspension>
#2 MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:73:7)
<asynchronous suspension>
#3 Firebase.initializeApp (package:firebase_core/src/firebase.dart:40:31)
<asynchronous suspension>
#4 main (package:flutter_module/main.dart:10:3)
<asynchronous suspension>
The Flutter module as standalone app is running totally fine and initializing Firebase, but not when integrated into the native iOS app.
My problem is similar to this one, but only occuring as an add-to-app module:
Calling Firebase.initializeApp() returns 'Unable to establish connection on channel' - Flutter + Firebase
I could solve it by adding the following line in the native iOS app:
GeneratedPluginRegistrant.register(with: flutterEngine)
I am running iOS 15.4.1 and VS Code March 2022 (version 1.66)
After upgrading to iOS 15.4.1, which could just be a coincidence, my Flutter app no longer runs in VS Code.
It just produces the error "Error launching application on [name of my phone]".
I have tried "flutter clean", rebooting my iPhone and rebooting my Mac, without success.
Interesting that when I run "flutter run --verbose" from a terminal window, the app launches on my iPhone, but with the following message:
[ ] Error launching application on [name of my iphone].
[ +3 ms] "flutter run" took 71,369ms.
[ +2 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:663:9)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1043:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:196:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>
Any help is appreciated.
Thanks
i am new by Flutter development. I have a problem by build an IOS App.
I have MacBook Air with M1 Chip (Big Sur)
My App works perfectly on Android Simulator, Real Device, Web, iPhone Simualtor, but when I try to build an iOS App, I get the following error:
[ +10 ms] Encountered error while building for device.
[ +2 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 _BuildIOSSubCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:270:7)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1043:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:196:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:284:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:232:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:91:3)
<asynchronous suspension>
Can anybody help me please?
When I'm trying to document my dart code, I get the following error:
Unhandled exception:
Invalid argument (uri): Unknown package: Instance of '_SimpleUri'
#0 ResourceLoader.resolveResourceUri.<anonymous closure> (package:dartdoc/src/generator/resource_loader.dart:41:11)
<asynchronous suspension>
#1 ResourceLoader.getResourceFile (package:dartdoc/src/generator/resource_loader.dart:31:15)
<asynchronous suspension>
#2 _DefaultTemplatesLoader.loadTemplate (package:dartdoc/src/generator/templates.dart:168:24)
<asynchronous suspension>
#3 Templates._create (package:dartdoc/src/generator/templates.dart:265:25)
<asynchronous suspension>
#4 initHtmlGenerator (package:dartdoc/src/generator/html_generator.dart:22:19)
<asynchronous suspension>
#5 Dartdoc.fromContext (package:dartdoc/dartdoc.dart:149:21)
<asynchronous suspension>
#6 main (file:///b/s/w/ir/cache/builder/src/third_party/dart/third_party/pkg/dartdoc/bin/dartdoc.dart:24:9)
<asynchronous suspension>
When I use the command dart --version, I get this:
Dart SDK version: 2.13.1 (stable) (Fri May 21 12:45:36 2021 +0200) on "linux_x64"
dartdoc --version:
dartdoc version: 0.42.0
Why is this happening? I'm new to dart, so I have no idea how to debug this.
I had no issues at all building my project, I duplicated it to start a new one, still worked then I made some code changes then I randomly can't build it at all. Even the previous project stopped building and I have no idea what the error is. I've tried purging the dart pub cache and everything but it seems this specific error hasn't happened to anyone yet from what I've searched.
Output:
Unhandled exception:
Invalid argument(s): A directory corresponding to fileSystemPath "/Users/chrisl/.pub-cache/hosted/pub.dartlang.org/devtools-0.9.7+1/build" could not be found
#0 createStaticHandler (package:shelf_static/src/static_handler.dart:50:5)
#1 defaultHandler (package:devtools_server/src/external_handlers.dart:40:23)
<asynchronous suspension>
#2 serveDevTools (package:devtools_server/src/server.dart:183:21)
#3 DevTools.start (package:dwds/src/servers/devtools.dart:26:15)
#4 Dwds.start (package:dwds/dwds.dart:132:33)
#5 WebDevServer.start (package:webdev/src/serve/webdev_server.dart:130:25)
#6 ServerManager.start (package:webdev/src/serve/server_manager.dart:23:38)
#7 _startServerManager (package:webdev/src/serve/dev_workflow.dart:103:27)
#8 DevWorkflow.start (package:webdev/src/serve/dev_workflow.dart:196:31)
<asynchronous suspension>
#9 DaemonCommand.run (package:webdev/src/command/daemon_command.dart:108:29)
<asynchronous suspension>
#10 CommandRunner.runCommand (package:args/command_runner.dart:197:27)
#11 _CommandRunner.runCommand (package:webdev/src/webdev_command_runner.dart:38:24)
#12 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:112:25)
#13 new Future.sync (dart:async/future.dart:223:31)
#14 CommandRunner.run (package:args/command_runner.dart:112:14)
Build Output