You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e: /Users/omega/Flutter-Files/.pub-cache/hosted/pub.dartlang.org/last_qr_scanner-0.0.6/android/src/main/kotlin/com/example/last_qr_scanner/QRView.kt: (22, 1): Class 'QRView' is not abstract and does not implement abstract member @UiThread public abstract fun onMethodCall(@nonnull p0: MethodCall, @nonnull p1: MethodChannel.Result): Unit defined in io.flutter.plugin.common.MethodChannel.MethodCallHandler
e: /Users/omega/Flutter-Files/.pub-cache/hosted/pub.dartlang.org/last_qr_scanner-0.0.6/android/src/main/kotlin/com/example/last_qr_scanner/QRView.kt: (93, 5): 'onMethodCall' overrides nothing
e: /Users/omega/Flutter-Files/.pub-cache/hosted/pub.dartlang.org/last_qr_scanner-0.0.6/android/src/main/kotlin/com/example/last_qr_scanner/QRView.kt: (93, 14): Abstract function 'onMethodCall' in non-abstract class 'QRView'
e: /Users/omega/Flutter-Files/.pub-cache/hosted/pub.dartlang.org/last_qr_scanner-0.0.6/android/src/main/kotlin/com/example/last_qr_scanner/QRView.kt: (93, 14): A function 'onMethodCall' with body cannot be abstract
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':last_qr_scanner:compileDebugKotlin'.
Compilation error. See log for more details
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
I fixed the issue by removing the question marks from this method:
override fun onMethodCall(call: MethodCall?, result: MethodChannel.Result?)
to this:
override fun onMethodCall(call: MethodCall, result: MethodChannel.Result)
Please provide a solution for this problem by changing your code.
The text was updated successfully, but these errors were encountered:
Tolga-FNT
changed the title
Class 'QRView' is not abstract and does not implement abstract member @UiThread public abstract fun onMethodCall
[SOLUTION PROVIDED INSIDE] Class 'QRView' is not abstract and does not implement abstract member @UiThread public abstract fun onMethodCall
Jul 9, 2019
e: /Users/omega/Flutter-Files/.pub-cache/hosted/pub.dartlang.org/last_qr_scanner-0.0.6/android/src/main/kotlin/com/example/last_qr_scanner/QRView.kt: (22, 1): Class 'QRView' is not abstract and does not implement abstract member @UiThread public abstract fun onMethodCall(@nonnull p0: MethodCall, @nonnull p1: MethodChannel.Result): Unit defined in io.flutter.plugin.common.MethodChannel.MethodCallHandler
e: /Users/omega/Flutter-Files/.pub-cache/hosted/pub.dartlang.org/last_qr_scanner-0.0.6/android/src/main/kotlin/com/example/last_qr_scanner/QRView.kt: (93, 5): 'onMethodCall' overrides nothing
e: /Users/omega/Flutter-Files/.pub-cache/hosted/pub.dartlang.org/last_qr_scanner-0.0.6/android/src/main/kotlin/com/example/last_qr_scanner/QRView.kt: (93, 14): Abstract function 'onMethodCall' in non-abstract class 'QRView'
e: /Users/omega/Flutter-Files/.pub-cache/hosted/pub.dartlang.org/last_qr_scanner-0.0.6/android/src/main/kotlin/com/example/last_qr_scanner/QRView.kt: (93, 14): A function 'onMethodCall' with body cannot be abstract
FAILURE: Build failed with an exception.
Execution failed for task ':last_qr_scanner:compileDebugKotlin'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1s
EDIT:
I fixed the issue by removing the question marks from this method:
override fun onMethodCall(call: MethodCall?, result: MethodChannel.Result?)
to this:
override fun onMethodCall(call: MethodCall, result: MethodChannel.Result)
Please provide a solution for this problem by changing your code.
The text was updated successfully, but these errors were encountered: