美文网首页
flutter 更新sdk后才掉的坑

flutter 更新sdk后才掉的坑

作者: Nur__ | 来源:发表于2022-06-27 11:53 被阅读0次

Build failed due to use of deprecated Android v1 embedding.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Warning
──────────────────────────────────────────────────────────────────────────────
Your Flutter application is created using an older version of the Android
embedding. It is being deprecated in favor of Android embedding v2. Follow the
steps at

https://flutter.dev/go/android-project-migration

to migrate your project. You may also pass the --ignore-deprecation flag to
ignore this check and continue with the deprecated v1 embedding. However,
the v1 Android embedding will be removed in future versions of Flutter.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
The detected reason was:

  /Users/imac/GithubProjects/flutterProject/tapioca/example/android/app/src/main/AndroidManifest.xml uses `android:name="io.flutter.app.FlutterApplication"`
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Build failed due to use of deprecated Android v1 embedding.

解决方式:/android/app/src/main/AndroidManifest.xml 去掉android:name="io.flutter.app.FlutterApplication"这一行

image.png

相关文章

网友评论

      本文标题:flutter 更新sdk后才掉的坑

      本文链接:https://www.haomeiwen.com/subject/oainvrtx.html