-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flutter briantree version 4.0.0 crash in android #158
Comments
In your code (if you have this as an external dependency) at this location, flutter-braintree/android/src/main/AndroidManifest.xml replace the code under application tag to below,
And then do (for android studio) |
Hi @BunnyBuddy I ran the code with the example given in the plugin but the app crashed with paypal Worker result FAILURE for Work [ id=454e0e52-d3a8-4109-8625-dcf1661ded4d, tags={ com.braintreepayments.api.AnalyticsUploadWorker } ] |
Hi @BunnyBuddy |
Hello,
I am using flutter version 4.0.0
I am using method
final request = BraintreeCreditCardRequest(
cardNumber: '4111111111111111',
expirationMonth: '12',
expirationYear: '2021',
cvv: '123',
);
final result = await Braintree.tokenizeCreditCard(
tokenizationKey,
request,
);
I got the error below,
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Unable to find explicit activity class {com.your-company.your-app/com.example.flutter_braintree.FlutterBraintreeCustom}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared ?, null, android.content.ActivityNotFoundException: Unable to find explicit activity class {com.your-company.your-app/com. example.flutter_braintree.FlutterBraintreeCustom}; have you declared this activity in your AndroidManifest.xml, or does your intent not match its declared ?
The text was updated successfully, but these errors were encountered: