我有Flutter项目一我运行项目我得到这个错误
评估项目“:flutter_keyboard_visibility”时出现问题。无方法签名:build_aci103jaxefegg6gjrvqjhnnw.android()适用于参数类型:(build_aci103jaxefegg6gjrvqjhnnw$_run_closure2)值:[build_aci103jaxefegg6gjrvqjhnnw$_run_closure2@3b6a6deb]
这里是pubspec.yaml
aad_oauth: ^0.3.0
avatar_glow: ^2.0.1
bot_toast: ^4.0.1
cached_network_image: ^3.1.0
carousel_slider: ^4.0.0
chewie: ^1.0.0
date_format: ^2.0.2
dio: ^4.0.0
downloads_path_provider: ^0.1.0
export_video_frame: ^0.0.5+4
file_picker: ^3.0.3
firebase_core: ^1.1.0
firebase_messaging: ^11.1.0
flip_card: ^0.5.0
flushbar: ^1.10.4
flutter:
sdk: flutter
flutter_link_previewer: ^1.0.4
flutter_linkify: ^5.0.2
flutter_local_notifications: ^9.3.2
flutter_localizations:
sdk: flutter
flutter_login: ^1.1.0
flutter_parsed_text: ^2.1.0
flutter_redux: ^0.8.2
flutter_screenutil: ^5.0.0
flutter_slidable: ^0.6.0
flutter_svg: ^0.22.0
flutter_vant_kit: ^0.2.6
fluttertoast: ^8.0.6
font_awesome_flutter: ^9.0.0
full_screen_image: ^1.0.2
full_screen_menu: ^1.0.0
geolocator: ^7.0.3
google_fonts: 2.2.0
http: ^0.13.2
image_picker: ^0.7.4
intl: ^0.17.0
local_hero: ^0.1.0
mime: ^1.0.0
modal_bottom_sheet: ^2.0.0
modal_progress_hud: ^0.1.3
multi_image_picker: ^4.8.0
open_file_safe: ^3.2.1
package_info: ^2.0.2
path_provider: ^2.0.0
permission_handler: ^8.2.0
qr_code_scanner: ^0.4.0
redux_logging: ^0.5.0
shared_preferences: ^2.0.5
sliding_up_panel: ^2.0.0+1
stream_transform: ^2.0.0
super_tooltip: ^1.0.1
url_launcher: ^6.0.3
uuid: ^3.0.4
visibility_detector: ^0.2.0
stop_watch_timer: ^1.3.1
dropdown_search: ^3.0.1
mat_month_picker_dialog: ^1.1.0
flutter_html_to_pdf: ^0.7.0
flutter_typeahead: ^3.0.0-nullsafety.0
1条答案
按热度按时间7vux5j2d1#
我也遇到过这种错误。
评估项目“file_picker”时出错。>无方法签名:build_5p3xxyak8svirtezca7439nhl.android()
对于我来说,这是由于Android build. gradle文件中的旧gradle版本而发生的。
升级版本后
android\gradle\wrapper\gradle-wrapper.properties
中的distributionUrl
android\build.gradle
中的classpath 'com.android.tools.build:gradle:<VERSION>'
这个问题已经为我解决了。