简体   繁体   English

注意:使用 -Xlint:deprecation 重新编译。 注意:一些输入文件使用或覆盖已弃用的 API

[英]Note: Recompile with -Xlint:deprecation. Note: Some input files use or override a deprecated API

When I run flutter run or debug my code after flutter clean it shows this error当我运行 flutter 在flutter clean之后flutter run调试我的代码时,它显示此错误

Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_core-0.7.0\android\src\main\java\io\flutter\plugins\firebase\core\FlutterFirebaseCorePlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.注意:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_core-0.7.0\android\src\main\java\io\flutter\plugins\firebase\core\FlutterFirebaseCorePlugin.java 使用或覆盖已弃用的 API。注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\android\src\main\java\io\flutter\plugins\firebase\firestore\FlutterFirebaseFirestorePlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.注:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\android\src\main\java\io\flutter\plugins\firebase\firestore\FlutterFirebaseFirestorePlugin.java使用或覆盖已弃用的 API。注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\android\src\main\java\io\flutter\plugins\firebase\firestore\streamhandler\TransactionStreamHandler.java uses unchecked or unsafe operations.注:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.16.0+1\android\src\main\java\io\flutter\plugins\firebase\firestore\streamhandler\TransactionStreamHandler .java 使用未经检查或不安全的操作。 Note: Recompile with -Xlint:unchecked for details.注意:使用 -Xlint:unchecked 重新编译以获取详细信息。 Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.20.1\android\src\main\java\io\flutter\plugins\firebase\auth\FlutterFirebaseAuthPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.注意:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.20.1\android\src\main\java\io\flutter\plugins\firebase\auth\FlutterFirebaseAuthPlugin.java 使用或覆盖已弃用的 API。注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 Note: Some input files use or override a deprecated API.注意:某些输入文件使用或覆盖已弃用的 API。
Note: Recompile with -Xlint:deprecation for details.注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_storage-7.0.0\android\src\main\java\io\flutter\plugins\firebase\storage\FlutterFirebaseStoragePlugin.java:38: warning: [deprecation] Registrar in PluginRegistry has been deprecated public static void registerWith(PluginRegistry.Registrar registrar) { ^ 1 warning Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\google_api_availability-2.0.4\android\src\main\java\com\baseflow\googleapiavailability\GoogleApiAvailabilityPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. C:\src\flutter.pub-cache\hosted\pub.dartlang.org\firebase_storage-7.0.0\android\src\main\java\io\flutter\plugins\firebase\storage\FlutterFirebaseStoragePlugin.java:38:警告: [deprecation] PluginRegistry 中的 Registrar 已被弃用 public static void registerWith(PluginRegistry.Registrar registrar) { ^ 1 warning 注意:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\google_api_availability-2.0.4 \android\src\main\java\com\baseflow\googleapiavailability\GoogleApiAvailabilityPlugin.java 使用或覆盖已弃用的 API。注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\location_permissions-2.0.5\android\src\main\java\com\baseflow\location_permissions\LocationPermissionsPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.注意:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\location_permissions-2.0.5\android\src\main\java\com\baseflow\location_permissions\LocationPermissionsPlugin.java 使用或覆盖已弃用的 API . 注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\google_sign_in-4.5.9\android\src\main\java\io\flutter\plugins\googlesignin\GoogleSignInPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.注意:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\google_sign_in-4.5.9\android\src\main\java\io\flutter\plugins\googlesignin\GoogleSignInPlugin.java 使用或覆盖了一个已弃用 API。注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.注意:某些输入文件使用或覆盖已弃用的 API。注意:使用 -Xlint:deprecation 重新编译以获取详细信息。 Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\path_provider-0.5.0+1\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.注意:C:\src\flutter.pub-cache\hosted\pub.dartlang.org\path_provider-0.5.0+1\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java 使用或覆盖已弃用的 API。注意:使用 -Xlint:deprecation 重新编译以获取详细信息。

but it only shows one time after that it doesn't show any error till I delete build flutter clean .但它只显示一次之后它不会显示任何错误,直到我删除 build flutter clean Is there any way to remove this error?有什么办法可以消除这个错误吗? OR does it cause any issue because I didn't see any issue yet in my app.或者它是否会导致任何问题,因为我在我的应用程序中还没有看到任何问题。 Thanks谢谢

Don't worry to much about it.不要太担心。 The error is about Firebase library which has, in the native implementation, some code that makes reference to APIs already marked as deprecated.该错误与 Firebase 库有关,该库在本机实现中具有一些引用已标记为已弃用的 API 的代码。

This is not going to generate any issues in your code and they will fix this in the next version of the library for sure.这不会在您的代码中产生任何问题,他们肯定会在下一个版本的库中解决这个问题。

This happens only after the flutter clean because that is the moment when this is compiled and this warning is detected.这只发生在flutter clean之后,因为那是编译并检测到此警告的时刻。 After that, compilation is cached and is not compiled anymore.之后,编译被缓存,不再编译。

Keep you app and app dependencies up to date and don't worry much about the warnings.让你的应用程序和应用程序依赖项保持最新,不要太担心警告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Firebase analytics (6.3.0) 注意:使用或覆盖已弃用的 API - Firebase analytics (6.3.0) Note: uses or overrides a deprecated API 如何在firebase中通过id查找note? - How to find note by id in firebase? Angular 和 TypeScript:找不到名称“Note”.ts(2304) - Angular and TypeScript: Cannot find name 'Note'.ts(2304) 如何为数据库笔记记录器安装额外的驱动程序 - How do install extra drivers for Database Note Taker azure 计算机视觉 api 3.2 版本的问题,因为它读取一些 pdf 文件,其中包含旧版本中不存在的附加垃圾值 - issue with azure computer vision api 3.2 version, as it reading some pdf files with additional garbage values which was not there in older version 使用 Amplify 时是否可以覆盖 AppSync 自动生成的输入类型? - Is there a way to override AppSync auto generated input types when using Amplify? 当我使用 Flutter 构建 apk 时,我收到类似这样的错误“使用或覆盖已弃用的 API。” - When I use Flutter build apk, I get errors like this "a uses or overrides a deprecated API." 弃用 aws_s3_bucket_object 后,我是否应该仅使用 aws_s3_bucket 上传文件? - With aws_s3_bucket_object deprecated, should I upload files using aws_s3_bucket only? Google Translate API:多个输入文本 - Python - Google Translate API : Multiple input texts - Python Twilio LookUp API 可以免费使用吗? - Is Twilio LookUp API free to use?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM