当前位置:网站首页>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中:
相关链接:
边栏推荐
- 【mysql】Mysql公用表表达式with as
- Navicat for mysql crack version installation
- He used to cells harvested trypsin & release procedure
- The go language (functions, closures, defer, panic/recover, recursion, structure, json serialization and deserialization)
- 7.27
- 低压差线性稳压器MPQ2013A-AEC1品牌MPS国产替代
- Minimum number to rotate array
- Replace the executable file glibc version of the one
- Unity笔记——FairyGUI
- Worthington弹性蛋白酶&透明质酸酶简介
猜你喜欢

每周推荐短视频:研发效能是什么?它可以实现反“内卷”?

STM32——OLED显示实验

【MySQL系列】MySQL数据库基础

Genesis与Axis Ventures互动密切

低压差线性稳压器MPQ2013A-AEC1品牌MPS国产替代

Detailed explanation of nacos cluster configuration
[email protected](using passwordYES)"/>Navicat报错:1045-Access denied for user [email protected](using passwordYES)

Reconstruction of binary tree

Selenium上传文件有多少种方式?不信你有我全

【分层强化学习】survey
随机推荐
How do we-media people create explosive articles?These 3 types of articles are most likely to explode
Reading notes. This is the psychology: see through the essence of the pseudo psychology (version 10)"
Worthington Enzymatic Cell Harvest & Cell Adhesion and Harvest
Genesis与Axis Ventures互动密切
新媒体运营必备的4个热点查询网
He cell separation technology 丨 basic primary cell separation methods and materials
2022杭电多校第三场 Two Permutations (dp, 哈希)
BEVDetNet: Bird's Eye View LiDAR Point Cloud based Real-time 3D Object Detection for Autonomous Drivi
微信开发者工具设置制表符大小为2
X64 mfc140u.dll文件缺失->应用程序无法正常启动(0xc000007b)解决方法
【Flutter】Flutter inspector 工具使用详解,查看Flutter布局,widget树,调试界面等
7.27
kubernets学习 -环境搭建
How many ways does Selenium upload files?I don't believe you have me
3 tips for using hot events to create press releases?A must-see for self-media people
KDE Frameworks 5.20.0: Plasma welcomes many improvements
string replace spaces
二维数组的查找
Weekly recommended short video: What is R&D efficiency?It can achieve anti "involution"?
Towhee 每周模型