鄢陵县网站,郴州小程序开发公司,网站建设与管理专业好吗,凡科模板建站问题#xff1a;引用device_info_plus 插件出现了异常#xff0c;不知道为啥打开项目的时候就不能用了。
解决#xff1a;改了版本解决
Target of URI doesnt exist: package:device_info_plus/device_info_plus.dart.
(Documentation) Try creating the file reference…问题引用device_info_plus 插件出现了异常不知道为啥打开项目的时候就不能用了。
解决改了版本解决
Target of URI doesnt exist: package:device_info_plus/device_info_plus.dart.
(Documentation) Try creating the file referenced by the URI, or try using a URI for a filethat does exist.在项目中用的是9.1.0然后改成 3.0.2就行了 而后又出现如下的错误两个依赖的版本冲突了哎把 package_info_plus 去掉吧如果没有使用到或者换插件换插件其他不知道怎么解决了
Because device_info_plus 3.2.1 4.0.1 depends on device_info_plus_windows ^2.1.1 and device_info_plus 2.1.0 3.2.1 depends on device_info_plus_windows ^2.1.0, device_info_plus 2.1.0 4.0.1 requires device_info_plus_windows ^2.1.0.
And because device_info_plus_windows 1.0.0-nullsafety.0 3.0.0 depends on win32 ^2.0.0 and package_info_plus 4.0.1 depends on win32 4.0.0 6.0.0, device_info_plus 2.1.0 4.0.1 is incompatible with package_info_plus 4.0.1.
So, because a302 depends on both package_info_plus ^4.2.0 and device_info_plus ^3.0.2, version solving failed.You can try the following suggestion to make the pubspec resolve:
* Try upgrading your constraint on device_info_plus: flutter pub add device_info_plus:^9.1.0
Process finished with exit code 1