-
Notifications
You must be signed in to change notification settings - Fork 104
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
[Android] have some issue #111
Comments
I'm having the same issue |
Hi @canhtran10 where did you exactly add below code? |
I added
to android block in build.gradle and it did the trick. Now my concern is updating the build.gradle file inside a package is not a good practice as it reset when I run npm ci As a solution I added a patch with |
@Harisene in this file path: node_modules/react-native-braintree-dropin-ui/android/build.gradle
|
@canhtran10 Have you had any success with getting the callbacks to work when a payment is completed? |
RN: 0.64
Java: 11
I got errors:
`
node_modules\react-native-braintree-dropin-ui\android\src\main\java\tech\power\RNBraintreeDropIn\RNBraintreeDropInModule.java:40: error: lambda expressions are not supported in -source 7
dropInClient = new DropInClient(activity, callback -> {
^
(use -source 8 or higher to enable lambda expressions)`
I fixed issue by add compileOptions to node_modules/react-native-braintree-dropin-ui/android/build.gradle
`
android {
}
`
However, when reverting to version 1.1.3, everything works fine.
Additionally, on iOS, the new version runs without any issues.
Please take a look, thank you
The text was updated successfully, but these errors were encountered: