【问题标题】:Telephony package build failed电话包构建失败
【发布时间】:2021-05-22 05:16:43
【问题描述】:

在我的新 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'.

【问题讨论】:

    标签: flutter dart sms telephony


    【解决方案1】:

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

    ext.kotlin_version = '1.4.10'
    

    【讨论】:

      猜你喜欢
      • 2021-09-06
      • 1970-01-01
      • 2016-05-17
      • 1970-01-01
      • 2015-07-11
      • 2017-12-13
      • 1970-01-01
      • 2012-05-28
      • 1970-01-01
      相关资源
      最近更新 更多