简体   繁体   中英

Telephony package build failed

In my new Flutter app I imported Telephony package:

telephony: ^0.1.3

But build files with exception:

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

According to this answer I changed my kotlin version in android/build.gradle to

ext.kotlin_version = '1.4.10'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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