电话包构建失败

Telephony package build failed

在我的新 Flutter 应用程序中,我导入了 Telephony 包:

telephony: ^0.1.3

但是构建文件有异常:

Users/{user}/flutter/.pub-cache/hosted/pub.dartlang.org/telephony-0.1.3/android/src/main/kotlin/com/shounakmulay/telephony/sms/SmsMethodCallHandler.kt: (52, 62): Expecting a parameter declaration

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':telephony:compileDebugKotlin'.

根据 this 的回答,我将 android/build.gradle 中的 kotlin 版本更改为

ext.kotlin_version = '1.4.10'