简体   繁体   中英

The plugin `hexcolor` uses a deprecated version of the Android embedding

The plugin hexcolor uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it, since a future release of Flutter will remove these deprecated APIs. If you are the plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter

Can someone solve this, please???????

在此处输入图像描述

pubspec.yamal

dependencies:
  flutter:
    sdk: flutter
  hexcolor: ^1.0.6

Rather than this try using hexcolor: ^2.0.5 that is the latest stable version and if that doesn't work then change the AndroidManifest.xml under activity tag .

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

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM