美文网首页Flutter开发大全
This app is using a deprecated v

This app is using a deprecated v

作者: QYCD | 来源:发表于2023-03-13 13:19 被阅读0次
    This app is using a deprecated version of the Android embedding.
    To avoid unexpected runtime failures, or future build failures, try to migrate this app to the V2 embedding.
    Take a look at the docs for migrating an app: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
    The plugin `amap_flutter_location` requires your app to be migrated to the Android embedding v2. Follow the steps on the migration doc above and re-run this command.
    
    1. 首先,删除android -> app -> src -> main -> AndroidManifest.xml中的
      android:name="io.flutter.app.FlutterApplication"


      image.png
    2. 添加如下这段代码

    <meta-data
                    android:name="flutterEmbedding"
                    android:value="2" />
    
    image.png

    参考自This app is using a deprecated version of the Android embedding. To avoid unexpected runtime failure

    相关文章

      网友评论

        本文标题:This app is using a deprecated v

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