flutter_paystack icon indicating copy to clipboard operation
flutter_paystack copied to clipboard

After upgrading to flutter 3,i can't build my app this error message keep coming up

Open Trinity6264 opened this issue 2 years ago • 9 comments

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

Trinity6264 avatar May 14 '22 02:05 Trinity6264

I'm also having the same issue I think the developer would need to upgrade to flutter 3.0

Milimeter avatar May 16 '22 12:05 Milimeter

iOS works though

Milimeter avatar May 16 '22 12:05 Milimeter

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

isaacadariku avatar May 16 '22 12:05 isaacadariku

i have same error image

mostafa2014nase avatar May 17 '22 10:05 mostafa2014nase

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 avatar May 17 '22 10:05 isaacadariku

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

image

mostafa2014nase avatar May 17 '22 10:05 mostafa2014nase

Any one have the issue, before they fix it. Change your flutter_paystack: line to this.

            ![Save to Pieces](chrome-extension://igbgibhbfonhmjlechmeefimncpekepm/save_button.svg)
        
        ```

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

image

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.

isaacadariku avatar May 17 '22 11:05 isaacadariku

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.

paultech4u avatar May 18 '22 05:05 paultech4u

This Solution is awesome for now ..

Thank You so much for this

vijayvaghela72 avatar Jun 01 '22 04:06 vijayvaghela72

This should be fixed in 1.0.6. Can you update the package version?

wilburx9 avatar Sep 18 '22 19:09 wilburx9