package:http/src/multip_file.dart:Context:封闭类的名称为"MultipartRequestMultipartFile"。../…/src/multip_file.dart:1
:错误:找不到类型"MultipartFile"。../…/src/multip_file.dart:92
static Future<MultipartFile> fromPath(String field, String filePath,
^^^^^^^^^^^^^
:错误:找不到类型"MultipartFile"。../…/src/multip_request.dart:133
String _headerForFile(MultipartFile file) {
^^^^^^^^^^^^^
:错误:找不到类型"MultipartFile"。../…/src/multip_file_io.dart:13
Future<MultipartFile> multipartFileFromPath(String field, String filePath,
^^^^^^^^^^^^^
:错误:"MultipartFile"不是类型。../…/src/multip_request.dart:46
final files = <MultipartFile>[];
^^^^^^^^^^^^^
:错误:找不到方法:"MultipartFile"。../…/src/multip_file.dart:63
return MultipartFile(field, stream, value.length,
^^^^^^^^^^^^^
:错误:未定义的名称"MultipartFile"。../…/src/multip_file.dart:79
return MultipartFile.fromBytes(field, encoding.encode(value),
^^^^^^^^^^^^^
:错误:不能将"double"类型的值分配给"int"类型的变量。../…/src/multip_request.dart:67
length += '--'.length +
^
:错误:"MultipartFile"不是类型。../…/src/multip_request.dart:133
String _headerForFile(MultipartFile file) {
^^^^^^^^^^^^^
:错误:找不到方法:"MultipartFile"。../…/src/multip_file_io.dart:19
return MultipartFile(field, stream, length,
^^^^^^^^^^^^^
Failed to package /Users/bookwarm/Programming/Flutter/chatApp.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/bookwarm/Programming/Flutter/chatApp/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.2.99. (in target 'libPhoneNumber-iOS' from project 'Pods')
Result bundle written to path:
/var/folders/cz/5ph142ld41dfggj5brlf41h00000gn/T/flutter_tools.E4o277/flutter_ios_build_temp_dirVbiyqD/temporary_xcresult_bundle
只需删除/用户/xxxxxxx/development/tools/flutter/.pub cache/hosts/pub.dartlang.org/并再次在您的项目上运行flutter包get。