当前位置:网站首页>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
边栏推荐
- TIPC messaging3
- tqdm的多行显示与单行显示
- Installation of ROS gazebo related packages
- Tick Data and Resampling
- 每月1号开始计算当月工作日
- MTK full dump grab
- PKG package manager usage instance in FreeBSD
- PHP tea sales and shopping online store
- Tick Data and Resampling
- A white hole formed by antineutrons produced by particle accelerators
猜你喜欢
CentOS8之mysql基本用法
What are the software product management systems? Inventory of 12 best product management tools
JS -- take a number randomly from the array every call, and it cannot be the same as the last time
PYQT5+openCV项目实战:微循环仪图片、视频记录和人工对比软件(附源码)
基于Hardhat和Openzeppelin开发可升级合约(二)
TIPC addressing 2
Mongodb learning and sorting (condition operator, $type operator, limit() method, skip() method and sort() method)
【云原生】2.5 Kubernetes 核心实战(下)
II Stm32f407 chip GPIO programming, register operation, library function operation and bit segment operation
基于Hardhat和Openzeppelin开发可升级合约(一)
随机推荐
Map set assignment to database
ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
Writing contract test cases based on hardhat
On April 17, 2022, the five heart matchmaker team received double good news
Astparser parsing class files with enum enumeration methods
对毕业季即将踏入职场的年轻人的一点建议
Is the Ren domain name valuable? Is it worth investing? What is the application scope of Ren domain name?
js中给数组添加元素的方法有哪些
mmrotate旋转目标检测框架使用记录
What are the methods of adding elements to arrays in JS
Resources读取2d纹理 转换为png格式
Digital transformation takes the lead to resume production and work, and online and offline full integration rebuilds business logic
高德根据轨迹画线
ImportError: cannot import name ‘Digraph‘ from ‘graphviz‘
Mmrotate rotation target detection framework usage record
liftOver进行基因组坐标转换
tidb-dm报警DM_sync_process_exists_with_error排查
PYQT5+openCV项目实战:微循环仪图片、视频记录和人工对比软件(附源码)
通过券商经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
Principle of scalable contract delegatecall