After executing the My Code below, it blocks and if that block of code is executed once again, then the error at ERROR LOG appears...
Does anyone know what may be causing this?
NOTE: The example app runs fine on my machine & phone btw...
Flutter Doctor
flutter doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.7, on Linux, locale en_US.UTF-8)
• Flutter version 1.12.13+hotfix.7 at /home/XXXXX/9360/programs/flutter
• Framework revision 9f5ff2306b (3 weeks ago), 2020-01-26 22:38:26 -0800
• Engine revision a67792536c
• Dart version 2.7.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/XXXXX/9360/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /home/XXXXX/9360/Android/Sdk
• ANDROID_SDK_ROOT = /home/XXXXX/9360/Android/Sdk
• Java binary at: /home/XXXXX/9360/programs/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
✗ Android license status unknown.
Try re-installing or updating your Android SDK Manager.
See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for detailed instructions.
[✓] Android Studio (version 3.5)
• Android Studio at /home/XXXXX/9360/programs/android-studio
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[!] IntelliJ IDEA Community Edition (version 2019.2)
• IntelliJ at /home/XXXXX/9360/programs/idea-IC-192.6262.58
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[✓] VS Code (version 1.42.0)
• VS Code at /usr/share/code
• Flutter extension version 3.8.1
[✓] Connected device (1 available)
• VOG L29 • 22X0219927009876 • android-arm64 • Android 10 (API 29)
! Doctor found issues in 2 categories.
Plugin Verison
On pubspec.yaml:
flutter_braintree: ^0.5.3+1
My Code
I'm running this code (as per the example):
...
print("1");
final request = BraintreeCreditCardRequest(
cardNumber: '4111111111111111',
expirationMonth: '12',
expirationYear: '2021',
);
print("2");
BraintreePaymentMethodNonce result = await Braintree.tokenizeCreditCard(
"<my_sandbox_tokenized_key>",
request,
);
print("3"); // <- This never gets printed!!
if (result != null) {
...
}
...
The credit card is created on Braintree, but I can 't obtain the nonce afterwards.
Does anyone have any idea about this issue I'm facing?
(I didn't add anything on Manifest since the changes that were described in the README.MD of the project were only related to googlePay, Paypel, 3ds auth,etc And I only want Credit Cards)
PlatformException Already Running
My Question
After executing the My Code below, it blocks and if that block of code is executed once again, then the error at ERROR LOG appears... Does anyone know what may be causing this?
NOTE: The example app runs fine on my machine & phone btw...
Flutter Doctor
Plugin Verison
On pubspec.yaml:
My Code
I'm running this code (as per the example):
The credit card is created on Braintree, but I can 't obtain the nonce afterwards. Does anyone have any idea about this issue I'm facing?
ERROR LOG:
build.gradle
app/build.gradle
AndroidManifest
(I didn't add anything on Manifest since the changes that were described in the README.MD of the project were only related to googlePay, Paypel, 3ds auth,etc And I only want Credit Cards)