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:
C:\Users\ALI HASSAN\OneDrive\Desktop\New folder\arcore_app\example\android\app\src\main\AndroidManifest.xml uses
`android:name="io.flutter.app.FutterApplication"`
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Build failed due to use of deprecated Android v1 embedding.
发布于 2022-03-13 14:52:45
您需要更改android\app\src\main\AndroidManifest.xml文件。
发自:
<application
android:name="io.flutter.app.FlutterApplication"
...
致:
<application
android:name="${applicationName}"
...
如果不存在,则添加这三行:
<meta-data
android:name="flutterEmbedding"
android:value="2" />
...
这是颤振工具用来生成GeneratedPluginRegistrant.java的。
发布于 2022-05-11 09:55:31
更改android AndroidManifest.xml文件
<application
android:name="io.flutter.app.FlutterApplication"
...
</application>
到
android:name="${applicationName}"
也增加了这两行
<meta-data
android:name="flutterEmbedding"
android:value="2" />
发布于 2022-03-18 05:53:51
您可以通过使用最新的sdk创建一个新项目并比较这两个项目的android\app\src\main\AndroidManifest.xml文件来找到解决方案。
https://stackoverflow.com/questions/71413851
复制相似问题