flutter_paystack
flutter_paystack copied to clipboard
After upgrading to flutter 3,i can't build my app this error message keep coming up
e: /media/trinity/E24E79554E792387/folders/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_paystack-1.0.5+1/android/src/main/kotlin/co/paystack/flutterpaystack/FlutterPaystackPlugin.kt: (48, 62): Type mismatch: inferred type is Activity? but Activity was expected e: /media/trinity/E24E79554E792387/folders/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_paystack-1.0.5+1/android/src/main/kotlin/co/paystack/flutterpaystack/MethodCallHandlerImpl.kt: (19, 37): Type mismatch: inferred type is BinaryMessenger? but BinaryMessenger was expected
I'm also having the same issue I think the developer would need to upgrade to flutter 3.0
iOS works though
Yes got same issue
e: /Users/isaacadariku/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_paystack-1.0.5+1/android/src/main/kotlin/co/paystack/flutterpaystack/FlutterPaystackPlugin.kt: (48, 62): Type mismatch: inferred type is Activity? but Activity was expected
e: /Users/isaacadariku/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_paystack-1.0.5+1/android/src/main/kotlin/co/paystack/flutterpaystack/MethodCallHandlerImpl.kt: (19, 37): Type mismatch: inferred type is BinaryMessenger? but BinaryMessenger was expected
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_paystack:compileDebugKotlin'.
> Compilation error. See log for more details
i have same error
Any one have the issue, before they fix it. Change your flutter_paystack:
line to this.
# Temporarily using this until we can resolve the issue with the plugin.
# Issue is: https://github.com/wilburt/flutter_paystack/issues/117
flutter_paystack:
git:
url: https://github.com/definitelyme/flutter_paystack.git
ref: a4a33c3dd0a12f46d655a2e63d11e9f20ba82d01
Any one have the issue, before they fix it. Change your
flutter_paystack:
line to this.# Temporarily using this until we can resolve the issue with the plugin. # Issue is: https://github.com/wilburt/flutter_paystack/issues/117 flutter_paystack: git: url: https://github.com/definitelyme/flutter_paystack.git ref: a4a33c3dd0a12f46d655a2e63d11e9f20ba82d01
same error in some another packages I think it's relation with kotlin file or something like that thanks in advance
Any one have the issue, before they fix it. Change your
flutter_paystack:
line to this. ```
Temporarily using this until we can resolve the issue with the plugin.
Issue is: https://github.com/wilburt/flutter_paystack/issues/117
flutter_paystack: git: url: https://github.com/definitelyme/flutter_paystack.git ref: a4a33c3dd0a12f46d655a2e63d11e9f20ba82d01
same error in some another packages I think it's relation with kotlin file or something like that thanks in advance
Yes, the new upgrade affect those files, but since you have pass through Paystack issue, you can check the other package if there is a solution over there.
Any one have the issue, before they fix it. Change your
flutter_paystack:
line to this.# Temporarily using this until we can resolve the issue with the plugin. # Issue is: https://github.com/wilburt/flutter_paystack/issues/117 flutter_paystack: git: url: https://github.com/definitelyme/flutter_paystack.git ref: a4a33c3dd0a12f46d655a2e63d11e9f20ba82d01
@isaacadariku This works fine for me, was having the same issues after upgrading to 3.0 but after using this it builds successfully thanks.
This Solution is awesome for now ..
Thank You so much for this
This should be fixed in 1.0.6. Can you update the package version?