Adyen / adyen-flutter

MIT License
23 stars 4 forks source link

Not able to Run app in Android #239

Closed palashpandya592 closed 1 month ago

palashpandya592 commented 1 month ago

Describe the bug Not able to integrate payment gateway into the app example is working fine. To Reproduce Steps to reproduce the behavior: [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.enableConsoleLogging"., null, null) E/flutter (13324): #0 CheckoutPlatformInterface.enableConsoleLogging (package:adyen_checkout/src/generated/platform_api.g.dart:1673:7) E/flutter (13324): E/flutter (13324): E/flutter (13324): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.adyen_checkout.CheckoutPlatformInterface.enableConsoleLogging"., null, null) E/flutter (13324): #0 CheckoutPlatformInterface.enableConsoleLogging (package:adyen_checkout/src/generated/platform_api.g.dart:1673:7) E/flutter (13324):

Robert-SD commented 1 month ago

Hi @palashpandya592, thank you for reaching out. I would like to help you resolving the issue.

Could you please share your intended integration? What kind of flow do you plan to use? Is it Drop-In with the session or the advanced flow?

As a first check, could you verify that your MainActivity of the Android app is subclassing the FlutterFragmentActivity instead of the default FlutterActivity. This is our example MainActivity.

palashpandya592 commented 1 month ago

@Robert-SD Thanks now i'm able to run code and it's working fine. Can you please add this in Readme so it easy to know everyone about changes.

palashpandya592 commented 1 month ago

@Robert-SD Thanks now i'm able to run code and it's working fine. Can you please add this in Readme so it easy to know everyone about changes.

Robert-SD commented 1 month ago

Perfect, glad it worked! We can add a link to the setup step in our docs. Thanks for the suggestion! 💚