当前位置:网站首页>flutter 问题总结
flutter 问题总结
2022-07-02 09:38:00 【如此简单000】
目录
方式一:Flutter/packages/flutter_tools/lib/src/web/chrome.dart中添加 ‘--disable-web-security’
run:
flutter run --no-sound-null-safety
build:
flutter build apk --no-sound-null-safety
2.使用了webview_flutter后flutter run出现问题: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 14.5.99. (in target 'Flutter' from project 'Pods')
在flutter项目的ios目录下找到Podfile文件,在底部替换post_install.....的内容为
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 9.0
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
end
然后cd到ios目录下,执行Pod install,然后出现提示信息
[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).
解决第一个!问题。打开PodFile,释放注释platform :ios, '9.0'
解决第二个!问题。打开Flutter/Release.xcconfig ,添加
#include "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"
然后再次运行pod install
之后还是出错,然后发现dart SDK版本号太低了,我的升级方式最终是下载新版本的flutter替换老版本文件夹。3.本地运行跨越
方式一:Flutter/packages/flutter_tools/lib/src/web/chrome.dart中添加 ‘--disable-web-security’
'--disable-web-security',
if (headless)
...<String>[
'--headless',
'--disable-gpu',
'--no-sandbox',
'--window-size=2400,1800',
],
然后删除flutter\bin\cache下的flutter_tools.snapshot文件和flutter_tools.stamp文件。
然后运行flutter doctor,然后重启项目
方式二:
flutter run --no-sound-null-safety -d chrome --web-renderer html边栏推荐
- Amazon cloud technology community builder application window opens
- TIPC addressing 2
- 三.芯片启动和时钟系统
- Multi line display and single line display of tqdm
- Huawei game failed to initialize init with error code 907135000
- Skills of PLC recorder in quickly monitoring multiple PLC bits
- Jenkins安装
- Summary of data export methods in powerbi
- PLC-Recorder快速监控多个PLC位的技巧
- Liftover for genome coordinate conversion
猜你喜欢

I STM32 development environment, keil5/mdk5.14 installation tutorial (with download link)

MySQL比较运算符IN问题求解

八大排序汇总

TIPC Service and Topology Tracking4
![[play with FPGA learning 5 in simple terms ----- reset design]](/img/57/816a59787259dc32b52897c069e1a6.png)
[play with FPGA learning 5 in simple terms ----- reset design]

ctf 记录

Mongodb learning and sorting (condition operator, $type operator, limit() method, skip() method and sort() method)

flink二開,實現了個 batch lookup join(附源碼)
![[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched](/img/5c/b0030fd5fbc07eb94013f2699c2a04.png)
[quick application] there are many words in the text component. How to solve the problem that the div style next to it will be stretched

PLC-Recorder快速监控多个PLC位的技巧
随机推荐
Programmer growth Chapter 6: how to choose a company?
liftOver进行基因组坐标转换
[cloud native] 2.5 kubernetes core practice (Part 2)
启牛商学院给的股票账户安全吗?能开户吗?
Solve the problem of data blank in the quick sliding page of the uniapp list
制造业数字化转型和精益生产什么关系
How does the whole network display IP ownership?
tidb-dm报警DM_sync_process_exists_with_error排查
Why does LabVIEW lose precision in floating point numbers
MySQL比较运算符IN问题求解
TIPC Cluster5
TIPC Service and Topology Tracking4
TIPC protocol
A white hole formed by antineutrons produced by particle accelerators
每月1号开始计算当月工作日
Flink two Open, implement Batch Lookup join (attached source)
spritejs
Jenkins安装
念念不忘,必有回响 | 悬镜诚邀您参与OpenSCA用户有奖调研
Some things configured from ros1 to ros2