赞
踩
报错信息:
运行在ios上报错
- No application found for TargetPlatform.ios.
- Is your project missing an ios/Runner/Info.plist?
- Consider running "flutter create ." to create one.
运行在安卓上报错
- AndroidManifest.xml could not be found.
- Please check /Users/jerry/flutter/projects/fish-redux/example/android/AndroidManifest.xml for errors.
- No application found for TargetPlatform.android_x86.
- Is your project missing an android/AndroidManifest.xml?
- Consider running "flutter create ." to create one.
当前目录下执行
flutter create .
执行后:
解决方案:回退flutter版本2.8.1或者升级flutter版本2.10.1
我遇到的问题是由于项目适配使用刚开始设置一个屏幕的尺寸比例后面都有使用这个比例来适配UI,官方这个问题的链接
解决方案:main启动加一个completer的允诺事件,等待screen.dart的准备工作完成之后再设置我们的适配变量
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。