当将flutter插件添加到现有的Android和iOS应用时,它可以完美地工作,将gradle更新到3.5.2
时构建失败,并出现Unresolved reference: facade
错误,这是flutter插件,这是我如何导入颤振类:
import io.flutter.facade.Flutter
import io.flutter.facade.FlutterFragment
以及如何使用它:
flutterView = Flutter.createView(
this,
lifecycle,
"rout"
)
我成功地遵循了本教程:https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps
为解决此问题,我尝试使高速缓存无效并重新启动,启动清理,重建并重新安装启动插件。