flutter报错: your app to be migrated to the Android embedding v2

flutter 升级到3.0.0后,运行报错your app to be migrated to the Android embedding v2,

查看项目后发现Android embedding 已经是v2了,

最后解决方法如下:

<application
  android:name="io.flutter.app.FlutterApplication"
  >
</application>

将以上配置修改为以下的样子即可:

<application
  android:name="${applicationName}"
  >
</application>

版权声明:本文为xinsiibngquan原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。