关于项目导入 audio_recorder 后 编译失败的问题 求高手解答

223 阅读1分钟

最近公司要使用 flutter 开发一个项目 看了三天视频开始撸了起来.在我导入后

dependencies: audio_recorder: ^0.0.6

Android 编译直接报错 错误如下: Compiler message: file:///Users/tuchengdong/Documents/flutter/.pub-cache/hosted/pub.flutter-io.cn/audio_recorder-0.0.6/lib/audio_recorder.dart:49:13: Error: A constructor invocation can't have type arguments on the constructor name. Try to place the type arguments on the class name. Map.from<String, Object>(await _channel.invokeMethod('stop')); ^^^^ Compiler failed on /Users/tuchengdong/Documents/workspace/yongyan/lib/main.dart Finished with error: Gradle task assembleDebug failed with exit code 1

麻烦大神帮我看下 谢谢~~~~~