2错误影响flutter中的应用程序发布



尽管应用程序在模拟器上运行良好,但我还是收到了两个错误。在谷歌play商店和ios应用商店上发布时,这些错误会造成问题吗?

第一个:

warning: The include file 'package:flutter_lints/flutter.yaml' in 'C:UserscodingaccountDesktopmyAppanalysis_options.yaml' can't be found when analyzing 'C:UserscodingaccountDesktopmyApp'. (include_file_not_found at [myApp] analysis_options.yaml:10)

第二个:

Note: C:flutter.pub-cachehostedpub.dartlang.orgcontacts_service-0.6.3androidsrcmainjavaflutterpluginscontactsservicecontactsserviceContactsServicePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

我想我们应该知道为什么我们要面对这样的事情,

如果analysis_options.yaml包含,则flatter_lints将不起作用

include: package:lints/recommended.yaml
linter:
rules:
- avoid_print
- avoid_unnecessary_containers
- avoid_web_libraries_in_flutter
- no_logic_in_create_state
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
- sized_box_for_whitespace
- use_full_hex_values_for_flutter_colors
- use_key_in_widget_constructors

这是讨论链接https://github.com/flutter/flutter/issues/86917

不,我不认为这个警告会让你的应用程序崩溃。对于第一个,我认为您错过了analysis_options文件中的规则。

相关内容

最新更新