[英]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.