Closed mbelelebohang-pm closed 2 years ago
same issue
Same here
(kinda quick & dirty diy, because I need to advance in my project, so this is at your own risk as I'm not an expert in either kotlin or the telephony plug-in).
I edited SmsMethodCallHandler.kt (complete path is in your error message), line 357 (for me).
Simply removed the question marks.
From: override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>?, grantResults: IntArray?): Boolean {
To: override fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray): Boolean {
For me, it compiles and runs. When this source file is refreshed (not often), this change needs to be applied again, but this is a small price, until a permanent solution appears.
Jacques66's solution worked for me !
Thanks @shounakmulay and @Jacques66
I have just upgraded to flutter 3.0 and I am getting this error from this package. Any ideas how to solve this?