当前位置:网站首页>FlutterBoost 3.0出现 Activity无法转换为ExclusiveAppComponent<Activity>的解决办法
FlutterBoost 3.0出现 Activity无法转换为ExclusiveAppComponent<Activity>的解决办法
2022-07-30 00:35:00 【51CTO】
在使用FlutterBoost 3.0过程中,一不小心升级了flutter的版本,会出现下面问题:
/flutter_boost-master/android/src/main/java/com/idlefish/flutterboost/containers/FlutterBoostActivity.java:167: 错误: 不兼容的类型: Activity无法转换为ExclusiveAppComponent
getFlutterEngine().getActivityControlSurface().attachToActivity(getActivity(), getLifecycle());
这是由于新版本的flutter 改动了api的原因,导致attachToActivity里面的参数转换出错;
flutterboost官方给出的临时解决方案如下:
简化下就是:
FlutterBoostActivity中:
FlutterBoostFragment中:
相关链接:
边栏推荐
- KDE Frameworks 5.20.0:Plasma迎来诸多改进
- How many ways does Selenium upload files?I don't believe you have me
- The strongest JVM in the whole network is coming!(Extreme Collector's Edition)
- 基于TNEWS‘ 今日头条中文新闻(短文本)分类
- 重建二叉树
- 从尾到头打印链表
- 3 tips for using hot events to create press releases?A must-see for self-media people
- Toutiao We-Media Operation: How to Gain 500+ Fans in Toutiao Today?
- 转发和重定向的区别及使用场景
- Worthington Enzymatic Cell Harvest & Cell Adhesion and Harvest
猜你喜欢

i.MX6U-driver development-3-new character driver

Minimum number to rotate array

谷歌浏览器(google)设置翻译中文,翻译选项不生效或没有弹出翻译选项

中文语义匹配

Detailed explanation of nacos cluster configuration

Worthington细胞分离技术丨基本原代细胞分离方法和材料

Navicat for mysql破解版安装

Music theory & guitar skills

BEVDetNet: Bird's Eye View LiDAR Point Cloud based Real-time 3D Object Detection for Autonomous Drivi

Unity Addressables
随机推荐
vmtouch——Linux下的文件缓存管理神器
Reconstruction of binary tree
go语言解决自定义header的跨域问题
Nacos micro service ~ Nacos 】 【 configuration of the center
专心致志做事情
7.28
Linux-安装MySQL(详细教程)
[MySQL series] MySQL database foundation
[Experience] Experience Summary - Lessons Learned
X64 mfc140u.dll文件缺失->应用程序无法正常启动(0xc000007b)解决方法
He used to cells harvested trypsin & release procedure
News text classification
7.27
BEVDetNet: Bird's Eye View LiDAR Point Cloud based Real-time 3D Object Detection for Autonomous Drivi
string replace spaces
Genesis与Axis Ventures互动密切
验证框架-01
测试员容易陷入的9大误区
How to increase account weight?3 ways to operate your own media to help you get more revenue
【分层强化学习】HAC源码解读