繁体   English   中英

电话 package 构建失败

[英]Telephony package build failed

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

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'.

根据这个答案,我将android/build.gradle中的 kotlin 版本更改为

ext.kotlin_version = '1.4.10'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM