No signature of method: build_aci103jaxefegg6gjrvqjhnnw.android() is applicable.

huangapple go评论68阅读模式
英文:

No signature of method: build_aci103jaxefegg6gjrvqjhnnw.android() is applicable

问题

I have Flutter project one I run the project I got this error

> 运行项目时出现以下错误:

A problem occurred evaluating project ':flutter_keyboard_visibility'.
> 评估项目'flutter_keyboard_visibility'时出现问题。
No signature of method: build_aci103jaxefegg6gjrvqjhnnw.android() is
> 没有找到 build_aci103jaxefegg6gjrvqjhnnw.android() 方法的签名,
applicable for argument types:
> 适用于参数类型的值:
(build_aci103jaxefegg6gjrvqjhnnw$_run_closure2) values:
(build_aci103jaxefegg6gjrvqjhnnw$_run_closure2@3b6a6deb)

Here is the pubspec.yaml
以下是 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

英文:

I have Flutter project one I run the project I got this error

> A problem occurred evaluating project ':flutter_keyboard_visibility'.
> No signature of method: build_aci103jaxefegg6gjrvqjhnnw.android() is
> applicable for argument types:
> (build_aci103jaxefegg6gjrvqjhnnw$_run_closure2) values:
> [build_aci103jaxefegg6gjrvqjhnnw$_run_closure2@3b6a6deb]

Here is the pubspec.yaml

  1. aad_oauth: ^0.3.0
  2. avatar_glow: ^2.0.1
  3. bot_toast: ^4.0.1
  4. cached_network_image: ^3.1.0
  5. carousel_slider: ^4.0.0
  6. chewie: ^1.0.0
  7. date_format: ^2.0.2
  8. dio: ^4.0.0
  9. downloads_path_provider: ^0.1.0
  10. export_video_frame: ^0.0.5+4
  11. file_picker: ^3.0.3
  12. firebase_core: ^1.1.0
  13. firebase_messaging: ^11.1.0
  14. flip_card: ^0.5.0
  15. flushbar: ^1.10.4
  16. flutter:
  17. sdk: flutter
  18. flutter_link_previewer: ^1.0.4
  19. flutter_linkify: ^5.0.2
  20. flutter_local_notifications: ^9.3.2
  21. flutter_localizations:
  22. sdk: flutter
  23. flutter_login: ^1.1.0
  24. flutter_parsed_text: ^2.1.0
  25. flutter_redux: ^0.8.2
  26. flutter_screenutil: ^5.0.0
  27. flutter_slidable: ^0.6.0
  28. flutter_svg: ^0.22.0
  29. flutter_vant_kit: ^0.2.6
  30. fluttertoast: ^8.0.6
  31. font_awesome_flutter: ^9.0.0
  32. full_screen_image: ^1.0.2
  33. full_screen_menu: ^1.0.0
  34. geolocator: ^7.0.3
  35. google_fonts: 2.2.0
  36. http: ^0.13.2
  37. image_picker: ^0.7.4
  38. intl: ^0.17.0
  39. local_hero: ^0.1.0
  40. mime: ^1.0.0
  41. modal_bottom_sheet: ^2.0.0
  42. modal_progress_hud: ^0.1.3
  43. multi_image_picker: ^4.8.0
  44. open_file_safe: ^3.2.1
  45. package_info: ^2.0.2
  46. path_provider: ^2.0.0
  47. permission_handler: ^8.2.0
  48. qr_code_scanner: ^0.4.0
  49. redux_logging: ^0.5.0
  50. shared_preferences: ^2.0.5
  51. sliding_up_panel: ^2.0.0+1
  52. stream_transform: ^2.0.0
  53. super_tooltip: ^1.0.1
  54. url_launcher: ^6.0.3
  55. uuid: ^3.0.4
  56. visibility_detector: ^0.2.0
  57. stop_watch_timer: ^1.3.1
  58. dropdown_search: ^3.0.1
  59. mat_month_picker_dialog: ^1.1.0
  60. flutter_html_to_pdf: ^0.7.0
  61. flutter_typeahead: ^3.0.0-nullsafety.0

答案1

得分: 0

我修复了问题,但首先让我解释一下问题。问题是有一个依赖于Key-Vi的库,它依赖于Key_Vi的最新版本。不幸的是,Key_Vi的所有者回滚到了早期版本,所以一旦SDK检查存储库时,它找不到它。解决方法是在pubspec.lock中设置Key-Vi的版本,Flutter引擎会检查需要下载的库的版本。
这就是全部。

英文:

I fixed the issue but first let me explain the problem it's there is a library depending on Key-Vi and it depends on the latest version of Key_Vi, Unfortunately, the owner of Key_Vi roll back on the latest version so once SDK check on repos it's doesn't find it so the solution was set the version of Key-Vi on pubspec.lock where the flutter engine checks the versions of libraries does he need it to download it
That's all.

答案2

得分: -1

我也遇到过这种错误。

> 出现了评估项目““file_picker”的问题。 > 找不到方法的签名: build_5p3xxyak8svirtezca7439nhl.android()

对我来说,这是因为在android的build.gradle文件中使用了旧的gradle版本。

在升级版本后

  • distributionUrlandroid\gradle\wrapper\gradle-wrapper.properties

  • classpath 'com.android.tools.build:gradle:<VERSION>'android\build.gradle

对我来说,这个问题已经解决了。

英文:

I also Faced This kind of error.

> A problem occurred evaluating project '"file_picker". > No signature
> of method: build_5p3xxyak8svirtezca7439nhl.android()

For Me, this occurs due to old gradle version in android build.gradle file.

after upgraded version of

  • distributionUrl in
    android\gradle\wrapper\gradle-wrapper.properties

  • classpath 'com.android.tools.build:gradle:<VERSION>' in
    android\build.gradle

This Issue is resolved for me.

huangapple
  • 本文由 发表于 2023年5月17日 19:17:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/76271496.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定