stripe-react-native
stripe-react-native copied to clipboard
App crash while presenting payment sheet on android real device
trafficstars
Hi developers,
My app is crashing when the payment sheet renders. Find below a simple code that I have tried.
import { StripeProvider } from '@stripe/stripe-react-native';
import { useStripe } from '@stripe/stripe-react-native';
import {Button, View} from 'react-native';
import {params} from "./__src__/api";
const App = () => {
return (
<StripeProvider
publishableKey={params.constants.STRIPE.DEV.PUBLISHABLE_KEY}
urlScheme="myapp://">
<PaymentScreen />
</StripeProvider>
);
}
const PaymentScreen = () => {
const { initPaymentSheet, presentPaymentSheet } = useStripe();
const checkout = async () => {
console.log("Starting checkout process");
try {
// Send request to Cloud Function to initiate payment
console.log("Sending request to payment server...");
const response = await fetch(params.constants.STRIPE.DEV.PAYMENT_URL, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({transactionId: "temp", amount: 1000}),
});
const data = await response.json();
console.log("Payment initiation response:", data); // Log the response from the server
if (data.clientSecret) {
console.log("Client secret received:", data.clientSecret);
// Proceed with Stripe PaymentSheet logic
console.log("Initializing payment sheet...");
const initSheet = await initPaymentSheet({
paymentIntentClientSecret: data.clientSecret,
merchantDisplayName: "Sanbbiz",
returnURL: "myapp://temp",
});
if (initSheet.error) {
console.error("Payment sheet initialization failed:", initSheet.error);
return;
}
console.log("Presenting payment sheet...");
const presentSheet = await presentPaymentSheet({clientSecret: data.clientSecret});
if (presentSheet.error) {
console.error("Error presenting payment sheet:", presentSheet.error);
} else {
console.log("Payment successful!");
}
} else {
console.log("Failed to get client secret");
}
} catch (error) {
console.error("Payment process error:", error); // Log error if something fails during the process
}
};
return (
<View>
<Button title="Checkout" onPress={checkout} />
</View>
);
}
export default App;
It works fine on iOS (simulator and real device) but on android it only works on simulator. On real device, the app crash while the payment sheet is presenting without any error.
logcat
025-04-11 09:05:54.644 1302-2284 BufferQueueDebug surfaceflinger E [ActivityRecord{b4ff66f u0 com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity t80}#4998](this:0xb40000769d19fcc0,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'ActivityRecord{b4ff66f u0 com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity t80}#4998'
2025-04-11 09:05:54.655 29582-29582 SensorManager com.sanbbiz D unregisterListenerImpl pid=29582 uid=10321;sensor: NULL;pkgName: com.sanbbiz
2025-04-11 09:05:54.683 29582-10420 libMEOW com.sanbbiz D meow new tls: 0xb40000703d14f1d0
2025-04-11 09:05:54.683 29582-10420 libMEOW com.sanbbiz D applied 1 plugins for [com.sanbbiz]:
2025-04-11 09:05:54.683 29582-10420 libMEOW com.sanbbiz D plugin 1: [libMEOW_gift.so]: 0xb400006fccf83010
2025-04-11 09:05:54.683 29582-10420 libMEOW com.sanbbiz D rebuild call chain: 0xb40000703fa41ac0
2025-04-11 09:05:54.683 29582-10420 libMEOW com.sanbbiz D meow delete tls: 0xb40000703d14f1d0
2025-04-11 09:05:54.688 29582-29582 ActivityThread com.sanbbiz D ++ activityComponent:com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity counts:1 ALEAK_CLEAR_SUPPORT:true
2025-04-11 09:05:54.829 29582-29582 VRI[Paymen...tActivity] com.sanbbiz D hardware acceleration = true, forceHwAccelerated = false
2025-04-11 09:05:54.829 29582-29582 ViewRootImpl com.sanbbiz D setView appearance:0 com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity
2025-04-11 09:05:54.831 1302-2284 BufferQueueDebug surfaceflinger E [a8f8a8b com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity#4999](this:0xb40000769d21d180,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'a8f8a8b com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity#4999'
2025-04-11 09:05:54.834 29582-29582 InputTransport com.sanbbiz D Create ARC handle: 0xb4000070ad0829f0
2025-04-11 09:05:54.834 29582-29582 InputEventReceiver com.sanbbiz D Input log is disabled in InputEventReceiver.
2025-04-11 09:05:54.834 29582-29582 InputTransport com.sanbbiz D Input log is disabled in InputChannel.
2025-04-11 09:05:55.140 29582-29582 com.sanbbiz com.sanbbiz W Method boolean androidx.compose.runtime.snapshots.SnapshotStateList.conditionalUpdate(boolean, kotlin.jvm.functions.Function1) failed lock verification and will run slower.
Common causes for lock verification issues are non-optimized dex code
and incorrect proguard optimizations.
2025-04-11 09:05:55.141 29582-29582 com.sanbbiz com.sanbbiz W Method boolean androidx.compose.runtime.snapshots.SnapshotStateList.conditionalUpdate$default(androidx.compose.runtime.snapshots.SnapshotStateList, boolean, kotlin.jvm.functions.Function1, int, java.lang.Object) failed lock verification and will run slower.
2025-04-11 09:05:55.141 29582-29582 com.sanbbiz com.sanbbiz W Method java.lang.Object androidx.compose.runtime.snapshots.SnapshotStateList.mutate(kotlin.jvm.functions.Function1) failed lock verification and will run slower.
2025-04-11 09:05:55.141 29582-29582 com.sanbbiz com.sanbbiz W Method void androidx.compose.runtime.snapshots.SnapshotStateList.update(boolean, kotlin.jvm.functions.Function1) failed lock verification and will run slower.
2025-04-11 09:05:55.141 29582-29582 com.sanbbiz com.sanbbiz W Method void androidx.compose.runtime.snapshots.SnapshotStateList.update$default(androidx.compose.runtime.snapshots.SnapshotStateList, boolean, kotlin.jvm.functions.Function1, int, java.lang.Object) failed lock verification and will run slower.
2025-04-11 09:05:55.331 1302-2284 BufferQueueDebug surfaceflinger E [com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity#5000](this:0xb40000769d1e9d60,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity#5000'
2025-04-11 09:05:55.339 29582-29582 BufferQueueConsumer com.sanbbiz D [](id:738e00000003,api:0,p:-1,c:29582) connect: controlledByApp=false
2025-04-11 09:05:55.339 29582-29582 config_debug com.sanbbiz I updateDecorCaptionStatus: {1.0 ?mcc0mnc [en_US,fr_FR] ldltr sw360dp w360dp h776dp 480dpi nrml long widecg port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2436) mAppBounds=Rect(0, 108 - 1080, 2436) mMaxBounds=Rect(0, 0 - 1080, 2436) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mDisplayWindowingMode=fullscreen mMultiWindowMode=normal mMultiWindowId=0 mWindowResiable=6 mInLargeScreen=-1 mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0 mUiOptSpec=-1 mCurDisplayId=-1} as.6 s.1 fontWeightAdjustment=0} fromMultiWindow: true
2025-04-11 09:05:55.340 29582-9954 OpenGLRenderer com.sanbbiz E Unable to match the desired swap behavior.
2025-04-11 09:05:55.369 29582-9954 BLASTBufferQueue com.sanbbiz D [VRI[PaymentSheetActivity]#3](f:0,a:1) acquireNextBufferLocked size=1080x2436 mFrameNumber=1 applyTransaction=true mTimestamp=104276772381061(auto) mPendingTransactions.size=0 graphicBufferId=127053722550299 transform=0
2025-04-11 09:05:55.373 1302-2284 BufferQueueDebug surfaceflinger E [Transition Root: ActivityRecord{b4ff66f u0 com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity t80}#5003](this:0xb40000769d1f53a0,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'Transition Root: ActivityRecord{b4ff66f u0 com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity t80}#5003'
2025-04-11 09:05:55.377 1302-2284 BufferQueueDebug surfaceflinger E [272c54e ActivityRecordInputSink com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity#5004](this:0xb40000769d1e4240,id:-1,api:0,p:-1,c:-1) id info cannot be read from '272c54e ActivityRecordInputSink com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity#5004'
2025-04-11 09:05:55.415 29582-29582 Choreographer com.sanbbiz I Skipped 32 frames! The application may be doing too much work on its main thread.
2025-04-11 09:05:55.415 29582-29582 TranChoreographerImpl com.sanbbiz E skippedFrames: 32
2025-04-11 09:05:55.546 29582-10357 Compatibil...geReporter com.sanbbiz D Compat change id reported: 247079863; UID 10321; state: ENABLED
2025-04-11 09:05:56.843 29582-29582 AndroidRuntime com.sanbbiz D Shutting down VM
2025-04-11 09:05:56.852 29582-29582 AndroidRuntime com.sanbbiz E FATAL EXCEPTION: main
Process: com.sanbbiz, PID: 29582
java.lang.NoSuchMethodError: No static method performImeAction$default(Landroidx/compose/ui/semantics/SemanticsPropertyReceiver;Ljava/lang/String;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)V in class Landroidx/compose/ui/semantics/SemanticsPropertiesKt; or its super classes (declaration of 'androidx.compose.ui.semantics.SemanticsPropertiesKt' appears in /data/app/~~nuYvGgpJwaR90YcnxFdi3w==/com.sanbbiz-3hK2BGPhJU-e1ZDlD7bCSA==/base.apk!classes20.dex)
at androidx.compose.foundation.text.CoreTextFieldKt$CoreTextField$semanticsModifier$1.invoke(CoreTextField.kt:532)
at androidx.compose.foundation.text.CoreTextFieldKt$CoreTextField$semanticsModifier$1.invoke(CoreTextField.kt:433)
at androidx.compose.ui.semantics.CoreSemanticsModifierNode.applySemantics(SemanticsModifier.kt:73)
at androidx.compose.ui.node.LayoutNode$collapsedSemantics$1.invoke(LayoutNode.kt:430)
at androidx.compose.ui.node.LayoutNode$collapsedSemantics$1.invoke(LayoutNode.kt:421)
at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:2303)
at androidx.compose.runtime.snapshots.SnapshotStateObserver$ObservedScopeMap.observe(SnapshotStateObserver.kt:500)
at androidx.compose.runtime.snapshots.SnapshotStateObserver.observeReads(SnapshotStateObserver.kt:256)
at androidx.compose.ui.node.OwnerSnapshotObserver.observeReads$ui_release(OwnerSnapshotObserver.kt:133)
at androidx.compose.ui.node.OwnerSnapshotObserver.observeSemanticsReads$ui_release(OwnerSnapshotObserver.kt:121)
at androidx.compose.ui.node.LayoutNode.getCollapsedSemantics$ui_release(LayoutNode.kt:421)
at androidx.compose.ui.semantics.SemanticsNodeKt.SemanticsNode(SemanticsNode.kt:48)
at androidx.compose.ui.semantics.SemanticsNode.fillOneLayerOfSemanticsWrappers(SemanticsNode.kt:268)
at androidx.compose.ui.semantics.SemanticsNode.fillOneLayerOfSemanticsWrappers(SemanticsNode.kt:270)
at androidx.compose.ui.semantics.SemanticsNode.unmergedChildren$ui_release(SemanticsNode.kt:248)
at androidx.compose.ui.semantics.SemanticsNode.getChildren(SemanticsNode.kt:327)
at androidx.compose.ui.semantics.SemanticsNode.getReplacedChildren$ui_release(SemanticsNode.kt:298)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3665)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3667)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3667)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3667)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3667)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3667)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3700)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.access$getAllUncoveredSemanticsNodesToMap(AndroidComposeViewAccessibilityDelegateCompat.android.kt:1)
2025-04-11 09:05:56.853 29582-29582 AndroidRuntime com.sanbbiz E at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat.getCurrentSemanticsNodes(AndroidComposeViewAccessibilityDelegateCompat.android.kt:342)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat.sendAccessibilitySemanticsStructureChangeEvents(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3085)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat.checkForSemanticsChanges(AndroidComposeViewAccessibilityDelegateCompat.android.kt:2358)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat.semanticsChangeChecker$lambda$46(AndroidComposeViewAccessibilityDelegateCompat.android.kt:2189)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat.$r8$lambda$CZAjA4a8ePLF9FU4Ia6Vf_-igrw(Unknown Source:0)
at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat$$ExternalSyntheticLambda2.run(D8$$SyntheticClass:0)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:243)
at android.os.Looper.loop(Looper.java:338)
at android.app.ActivityThread.main(ActivityThread.java:8506)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1064)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.foundation.text.CoreTextFieldKt$CoreTextField$semanticsModifier$1.invoke(CoreTextField.kt:532)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.foundation.text.CoreTextFieldKt$CoreTextField$semanticsModifier$1.invoke(CoreTextField.kt:433)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.semantics.CoreSemanticsModifierNode.applySemantics(SemanticsModifier.kt:73)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.node.LayoutNode$collapsedSemantics$1.invoke(LayoutNode.kt:430)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.node.LayoutNode$collapsedSemantics$1.invoke(LayoutNode.kt:421)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:2303)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.runtime.snapshots.SnapshotStateObserver$ObservedScopeMap.observe(SnapshotStateObserver.kt:500)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.runtime.snapshots.SnapshotStateObserver.observeReads(SnapshotStateObserver.kt:256)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.node.OwnerSnapshotObserver.observeReads$ui_release(OwnerSnapshotObserver.kt:133)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.node.OwnerSnapshotObserver.observeSemanticsReads$ui_release(OwnerSnapshotObserver.kt:121)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.node.LayoutNode.getCollapsedSemantics$ui_release(LayoutNode.kt:421)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.semantics.SemanticsNodeKt.SemanticsNode(SemanticsNode.kt:48)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.semantics.SemanticsNode.fillOneLayerOfSemanticsWrappers(SemanticsNode.kt:268)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.semantics.SemanticsNode.fillOneLayerOfSemanticsWrappers(SemanticsNode.kt:270)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.semantics.SemanticsNode.unmergedChildren$ui_release(SemanticsNode.kt:248)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.semantics.SemanticsNode.getChildren(SemanticsNode.kt:327)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.semantics.SemanticsNode.getReplacedChildren$ui_release(SemanticsNode.kt:298)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3665)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3667)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3667)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3667)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3667)
2025-04-11 09:05:56.853 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap$findAllSemanticNodesRecursive(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3667)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.getAllUncoveredSemanticsNodesToMap(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3700)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat_androidKt.access$getAllUncoveredSemanticsNodesToMap(AndroidComposeViewAccessibilityDelegateCompat.android.kt:1)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat.getCurrentSemanticsNodes(AndroidComposeViewAccessibilityDelegateCompat.android.kt:342)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat.sendAccessibilitySemanticsStructureChangeEvents(AndroidComposeViewAccessibilityDelegateCompat.android.kt:3085)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat.checkForSemanticsChanges(AndroidComposeViewAccessibilityDelegateCompat.android.kt:2358)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat.semanticsChangeChecker$lambda$46(AndroidComposeViewAccessibilityDelegateCompat.android.kt:2189)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat.$r8$lambda$CZAjA4a8ePLF9FU4Ia6Vf_-igrw(Unknown Source:0)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at androidx.compose.ui.platform.AndroidComposeViewAccessibilityDelegateCompat$$ExternalSyntheticLambda2.run(D8$$SyntheticClass:0)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at android.os.Handler.handleCallback(Handler.java:958)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at android.os.Handler.dispatchMessage(Handler.java:99)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at android.os.Looper.loopOnce(Looper.java:243)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at android.os.Looper.loop(Looper.java:338)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at android.app.ActivityThread.main(ActivityThread.java:8506)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at java.lang.reflect.Method.invoke(Native Method)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
2025-04-11 09:05:56.854 29582-29582 ExceptionHandle com.sanbbiz I at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1064)
2025-04-11 09:05:56.878 29582-29582 Process com.sanbbiz I Sending signal. PID: 29582 SIG: 9
---------------------------- PROCESS ENDED (29582) for package com.sanbbiz ----------------------------
2025-04-11 09:05:57.018 2027-2454 debug_Tran...Controller system_server E this is ActivityRecord{b4ff66f u0 com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity t80 f}} isVisibleRequested false
2025-04-11 09:05:57.018 2027-2454 debug_Transition system_server E mParticipants is contains ActivityRecord{b4ff66f u0 com.sanbbiz/com.stripe.android.paymentsheet.PaymentSheetActivity t80 f}} so return
2025-04-11 09:05:57.020 2027-2454 debug_Tran...Controller system_server E this is ActivityRecord{8f65615 u0 com.sanbbiz/.MainActivity t80 f}} isVisibleRequested false
2025-04-11 09:05:57.020 2027-2454 debug_Transition system_server E mParticipants is contains ActivityRecord{8f65615 u0 com.sanbbiz/.MainActivity t80 f}} so return
Dependencies in package.json
"@stripe/stripe-react-native": "^0.41.0",
"react": "18.3.1",
"react-native": "0.75.1",
android/build.gradle
buildscript {
ext {
buildToolsVersion = "34.0.0"
minSdkVersion = 23
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.24"
androidXBrowser = "1.8.0"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
// NOTE: if you are on react-native 0.71 or below, you must not update
// the google-services plugin past version 4.3.15
classpath "com.google.gms:google-services:4.4.0"
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url "$rootDir/../node_modules/@notifee/react-native/android/libs" }
}
}
apply plugin: "com.facebook.react.rootproject"
android/app/build.gradle
dependencies {
// The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android")
implementation("com.google.android.material:material:1.5.0")
implementation project(':react-native-config')
implementation project(':react-native-inappbrowser-reborn')
// implementation project(':react-native-share')
implementation project(':react-native-background-timer')
if (hermesEnabled.toBoolean()) {
implementation("com.facebook.react:hermes-android")
} else {
implementation jscFlavor
}
}
I would like some advices on how to fix this. Please tell me if more information are needed. Thanks