当前位置:网站首页>Summary of flutter problems
Summary of flutter problems
2022-07-02 11:36:00 【So simple 000】
Catalog
Mode one :Flutter/packages/flutter_tools/lib/src/web/chrome.dart Add ‘--disable-web-security’
And then run flutter doctor, And then restart the project
run:
flutter run --no-sound-null-safety
build:
flutter build apk --no-sound-null-safety
2. Used webview_flutter after flutter run Problems arise :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')
stay flutter Project ios In the directory Podfile file , Replace at bottom post_install..... The content is
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
then cd To ios Under the table of contents , perform Pod install, Then a prompt message appears
[!] 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`).
Solve the first one ! problem . open PodFile, Release comments platform :ios, '9.0'
Solve the second ! problem . open Flutter/Release.xcconfig , add to
#include "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"
Then run... Again pod install
Then something went wrong , And found that dart SDK The version number is too low , My upgrade method is to download the new version flutter Replace the old version folder .
3. Local operation spanning
Mode one :Flutter/packages/flutter_tools/lib/src/web/chrome.dart Add ‘--disable-web-security’
'--disable-web-security',
if (headless)
...<String>[
'--headless',
'--disable-gpu',
'--no-sandbox',
'--window-size=2400,1800',
],
Then delete flutter\bin\cache Under the flutter_tools.snapshot Document and flutter_tools.stamp file .
And then run flutter doctor, And then restart the project
Mode two :
flutter run --no-sound-null-safety -d chrome --web-renderer html
边栏推荐
- What are the software product management systems? Inventory of 12 best product management tools
- Indexer in C #
- Complement (Mathematical Simulation
- Mongodb learning and sorting (condition operator, $type operator, limit() method, skip() method and sort() method)
- Skills of PLC recorder in quickly monitoring multiple PLC bits
- vant tabs组件选中第一个下划线位置异常
- Internship report skywalking distributed link tracking?
- TIPC introduction 1
- LVM操作
- 数字化转型挂帅复产复工,线上线下全融合重建商业逻辑
猜你喜欢
How does the whole network display IP ownership?
[cloud native] 2.5 kubernetes core practice (Part 2)
数字化转型挂帅复产复工,线上线下全融合重建商业逻辑
Skills of PLC recorder in quickly monitoring multiple PLC bits
Mongodb learning and sorting (condition operator, $type operator, limit() method, skip() method and sort() method)
三.芯片啟動和時鐘系統
Why does LabVIEW lose precision in floating point numbers
Tick Data and Resampling
PHP tea sales and shopping online store
CTF record
随机推荐
ren域名有价值吗?值不值得投资?ren域名的应用范围有哪些?
Introduction to interface debugging tools
PHP tea sales and shopping online store
SSRF
制造业数字化转型和精益生产什么关系
Always report errors when connecting to MySQL database
ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
Is bond fund safe? Does the bond buying foundation lose principal?
Astparser parsing class files with enum enumeration methods
ctf 记录
PYQT5+openCV项目实战:微循环仪图片、视频记录和人工对比软件(附源码)
Eight sorting summaries
二.Stm32f407芯片GPIO编程,寄存器操作,库函数操作和位段操作
Compilation errors and printout garbled problems caused by Chinese content in vs2019 code
mysql链表数据存储查询排序问题
PowerBI中导出数据方法汇总
Is the stock account given by qiniu business school safe? Can I open an account?
Functional interfaces and method references
What is the relationship between digital transformation of manufacturing industry and lean production
通过券商经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?