Build failed due to use of deprecated Android v1 embedding

参考:https://blog.51cto.com/u_15639793/5340424

flutter run运行项目时报错:

Build failed due to use of deprecated Android v1 embedding

解决:

android/app/src/main下的找到AndroidManifest.xml修改application标签内容如下:

android:name="${applicationName}" //修改之前的android:name="io.flutter.app.FlutterApplication"为这样
android:label="flutter_nest_page_view"
android:icon="@mipmap/ic_launcher">

 

posted @ 2022-11-23 15:11  lude1994  阅读(263)  评论(0)    收藏  举报