Skip to content
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

got err "braintree_sdk_setup_failed" when install "react-native-paypal" and "react-native-intecorm" #108

Open
Tsu-7 opened this issue Nov 8, 2021 · 0 comments

Comments

@Tsu-7
Copy link

Tsu-7 commented Nov 8, 2021

when i install paypal with react-native-intercorm. i got the error "braintree setup sdk failed"
it looks like there was an error doing the environment settings for the 2 libraries. and always error with paypal. when i try to uninstall intercorm paypal works fine
can you check so i can use 2 packs at the same time

react-native: 0.63.4
react-native-intercom: 20.0.0
react-native-paypal: 4.1.0

err log:
{"nativeStackAndroid":[{"methodName":"enforceMainThreadIfNeeded","lineNumber":317,"file":"LifecycleRegistry.java","class":"androidx.lifecycle.LifecycleRegistry"},{"methodName":"addObserver","lineNumber":172,"file":"LifecycleRegistry.java","class":"androidx.lifecycle.LifecycleRegistry"},{"methodName":"initLifecycle","lineNumber":496,"file":"Fragment.java","class":"androidx.fragment.app.Fragment"},{"methodName":"","lineNumber":476,"file":"Fragment.java","class":"androidx.fragment.app.Fragment"},{"methodName":"","lineNumber":16,"file":"BrowserSwitchFragment.java","class":"com.braintreepayments.browserswitch.BrowserSwitchFragment"},{"methodName":"","lineNumber":133,"file":"BraintreeFragment.java","class":"com.braintreepayments.api.BraintreeFragment"},{"methodName":"newInstance","lineNumber":215,"file":"BraintreeFragment.java","class":"com.braintreepayments.api.BraintreeFragment"},{"methodName":"newInstance","lineNumber":172,"file":"BraintreeFragment.java","class":"com.braintreepayments.api.BraintreeFragment"},{"methodName":"initializeBraintreeFragment","lineNumber":91,"file":"RNPaypalModule.java","class":"com.smarkets.paypal.RNPaypalModule"},{"methodName":"requestOneTimePayment","lineNumber":47,"file":"RNPaypalModule.java","class":"com.smarkets.paypal.RNPaypalModule"},{"methodName":"invoke","lineNumber":-2,"file":"Method.java","class":"java.lang.reflect.Method"},{"methodName":"invoke","lineNumber":372,"file":"JavaMethodWrapper.java","class":"com.facebook.react.bridge.JavaMethodWrapper"},{"methodName":"invoke","lineNumber":151,"file":"JavaModuleWrapper.java","class":"com.facebook.react.bridge.JavaModuleWrapper"},{"methodName":"run","lineNumber":-2,"file":"NativeRunnable.java","class":"com.facebook.react.bridge.queue.NativeRunnable"},{"methodName":"handleCallback","lineNumber":873,"file":"Handler.java","class":"android.os.Handler"},{"methodName":"dispatchMessage","lineNumber":99,"file":"Handler.java","class":"android.os.Handler"},{"methodName":"dispatchMessage","lineNumber":27,"file":"MessageQueueThreadHandler.java","class":"com.facebook.react.bridge.queue.MessageQueueThreadHandler"},{"methodName":"loop","lineNumber":193,"file":"Looper.java","class":"android.os.Looper"},{"methodName":"run","lineNumber":226,"file":"MessageQueueThreadImpl.java","class":"com.facebook.react.bridge.queue.MessageQueueThreadImpl$4"ueThreadImpl$4"},{"methodName":"run","lineNumber":76d.java","class"4,"file":"Thread.java","class":"java.lang.Thread"}],hod addObserver"userInfo":null,"message":"Method addObserver must be_sdk_setup_faie called on the main thread","code":"braintree_sdk_s0.2.2:8081/indeetup_failed","line":4524,"column":45,"sourceURL":"http://10.0.2.2:8081/index.bundle?platform=android&dev=true&minify=false"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant