问题 1
Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @1441d5df
解决办法:
这两个地方有问题。可以新建一个项目,对应修改。 但是直接从Android studio 打开Android 部分直接运行又是可以直接运行。
问题2:
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:31:9: Error: Type 'UnmodifiableUint8ListView' not found.
final UnmodifiableUint8ListView bytes;
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:31:9: Error: 'UnmodifiableUint8ListView' isn't a type.
final UnmodifiableUint8ListView bytes;
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:51:17: Error: Method not found: 'UnmodifiableUint8ListView'.
return Guid(UnmodifiableUint8ListView(guid));
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dev/win32-3.1.4/lib/src/guid.dart:55:31: Error: Method not found: 'UnmodifiableUint8ListView'.
解决办法:
flutter pub upgrade win32
//如果 pub upgrade win32 无法正常工作,只需运行以下命令
flutter pub global activate -s git https://github.com/jonataslaw/get_cli
flutter pub cache clean
flutter channel stable
flutter clean && flutter pub get
flutter pub upgrade
问题3 ios 拉取某些库的时候报错,场景是有的库可以正常获取 有的不行
LoadError - dlopen(/opt/homebrew/lib/ruby/gems/3.1.0/gems/ffi-1.16.3/lib/ffi_c.bundle, 0x0009): tried: '/opt/home
可以试试
pod repo update
也可以试试添加
source 'https://github.com/CocoaPods/Specs.git'
也可以试试
pod deintegrate
pod install