当前位置: 首页 > news >正文

Execution failed for task ‘:keyboard_utils:compileDebugKotlin‘.

Execution failed for task ‘:keyboard_utils:compileDebugKotlin’.

这个错误是keyboard_utils依赖报错。
这个问题在keyboard_utils github项目的issues 有记载Project does not run with new Flutter 2.10.0
详细错误信息:

e: /Users/andreifufylev/development/flutter/.pub-cache/hosted/pub.dartlang.org/keyboard_utils-1.3.3/android/src/main/kotlin/br/com/keyboard_utils/manager/KeyboardUtils.kt: (56, 40): Using 'max(): T?' is an error. Use maxOrNull instead.FAILURE: Build failed with an exception.* What went wrong:
Execution failed for task ':keyboard_utils:compileDebugKotlin'.
> Compilation error. See log for more details* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 24s
Exception: Gradle task assembleDevelopmentDebug failed with exit code 1

解决方式:

1.建议使用1.3.4版本。
2.从写该依赖的handleKeyboard()方法:

override fun handleKeyboard() {keyboardSessionTimer = object : CountDownTimer(150, 1) {override fun onFinish() {keyboardSessionHeights.maxOrNull().let {if (it!! > 0 && lastKeyboardHeight!! != it!!) {
http://www.lryc.cn/news/217662.html

相关文章:

  • AC修炼计划(AtCoder Regular Contest 163)
  • 持续进化,快速转录,Faster-Whisper对视频进行双语字幕转录实践(Python3.10)
  • 【设计模式】第24节:行为型模式之“模板方法模式”
  • 【考研数学】数学“背诵手册”(二)| 线代及概率论部分
  • Android WMS——WindowState介绍(十三)
  • C/C++网络编程基础知识超详细讲解第二部分(系统性学习day12)
  • 【教3妹学编程-算法题】117. 填充每个节点的下一个右侧节点指针 II
  • window10 mysql8.0 修改端口port不生效
  • 欧盟网络安全威胁:虚假与错误信息
  • 006 Linux 进程的概念 | 获取进程的PID
  • 时序预测 | Python实现ARIMA-CNN-LSTM差分自回归移动平均模型结合卷积长短期记忆神经网络时间序列预测
  • 《异常检测——从经典算法到深度学习》23 TimesNet: 用于常规时间序列分析的时间二维变化模型
  • 计算机网络(59)
  • 【CSS】CSS基础知识扫盲
  • React中的状态管理
  • 【优选算法系列】【专题九链表】第一节.链表常用技巧和操作总结(2. 两数相加)
  • 上线Spring boot-若依项目
  • pinia简单使用
  • 数据库进阶教学——数据库故障恢复(日志文件)
  • Leetcode 73 矩阵置0
  • Rust学习日记(二)变量的使用--结合--温度换算/斐波那契数列--实例
  • html各个标签的使用
  • android 混淆
  • 旋转链表(C++解法)
  • AcWing 134:双端队列
  • Spring Cloud Gateway 重写 URL
  • 【C语法学习】10 - scanf()函数
  • ffmpeg mp3截取命令,视频与mp3合成带音频视频命令
  • 文件夹还在,里面文件没了?问题这样解决
  • 使用 OpenCV 和 Tesseract OCR 进行车牌识别