#abdessalamxseeyoung_reactnative-compose-error
1 messages Β· Page 1 of 1 (latest)
π Welcome to your new thread!
β²οΈ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
β±οΈ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
π This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1377273842283708566
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- abdessalamxseeyoung_code, 26 minutes ago, 7 messages
- abdessalamxseeyoung_code, 15 hours ago, 5 messages
I have already asked the question and when i wanted to get logs from logcat i had unexpected issues with my app(sorry for the delay)
using these versions
"@stripe/stripe-identity-react-native": "^0.3.7",
"@stripe/stripe-react-native": "^0.44.0",
with style fixed as said in documentation:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
</style>
</resources>
Added this to android/app/build.gradle (because i had some kinda errors about them in logs of app:
//Jetpack Compose dependencies for Stripe Identity compatibility
implementation ("androidx.activity:activity-compose:1.10.1")
implementation ("androidx.compose.ui:ui:1.8.2")
implementation ("androidx.compose.ui:ui-tooling-preview:1.8.2")
implementation ("androidx.compose.material:material:1.8.2")
implementation ("androidx.lifecycle:lifecycle-viewmodel-compose:2.9.0")
implementation ("androidx.navigation:navigation-compose:2.9.0")
implementation ("androidx.compose.runtime:runtime-livedata:1.8.2")
composeOptions {
kotlinCompilerExtensionVersion = "1.5.15"
}
..
Lemme know if there is anything else could help get you on track!
Hi again π were you able to locate any logs from the crash?
yes these are the logs i get exactly when the app crashes and little while before
i got these logs from the session creation and as you can see i got my data from backend the id and the euphemeralKey( Ireplaced them in file)
then app crash !
Thank you! Looking to see if anything jumps out at me and aligns with any other concerns I've seen flagged.
These are the lines I'm focusing on for now:
05-28 14:09:35.373 14731 14731 E AndroidRuntime: Process: com.mynotificationapp, PID: 14731
05-28 14:09:35.373 14731 14731 E AndroidRuntime: java.lang.NoSuchMethodError: No static method collectAsState(Lkotlinx/coroutines/flow/StateFlow;Landroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; in class Lcom/stripe/android/uicore/utils/StateFlowsComposeKt; or its super classes (declaration of 'com.stripe.android.uicore.utils.StateFlowsComposeKt' appears in /data/app/~~-dzFrEsHJ_nhHJ-RWmzsbA==/com.mynotificationapp-JIgvdIitsE-6O49QhC3w-w==/base.apk!classes22.dex)```
Out of curiosity, did you post this issue on our Github repo?
https://github.com/stripe/stripe-identity-react-native/issues/193
Nope that's not me
I'm not sure what could be going, and am checking with teammates who are more familiar with React Native to see if they have suggestions.
Okay, Thank you so much for your time
Looking back at our packages that you're using, is your app also making use of stripe-react-native? I don't think that's necessary to use with Identity, and am wondering if you have a need for the stripe-react-native package or if it's okay to test your app without that package included.
Hi taking over here
I suspect this has to do with your build.gradle config
The exception being thrown has to do with compose
java.lang.NoSuchMethodError: No static method collectAsState(Lkotlinx/coroutines/flow/StateFlow;Landroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; in class Lcom/stripe/android/uicore/utils/StateFlowsComposeKt; or its super classes (declaration of 'com.stripe.android.uicore.utils.StateFlowsComposeKt' appears in /data/app/~~-dzFrEsHJ_nhHJ-RWmzsbA==/com.mynotificationapp-JIgvdIitsE-6O49QhC3w-w==/base.apk!classes22.dex)
You explicitly define some versions there:
implementation ("androidx.compose.ui:ui:1.8.2")
implementation ("androidx.compose.ui:ui-tooling-preview:1.8.2")
implementation ("androidx.compose.material:material:1.8.2")
implementation ("androidx.lifecycle:lifecycle-viewmodel-compose:2.9.0")
implementation ("androidx.navigation:navigation-compose:2.9.0")
implementation ("androidx.compose.runtime:runtime-livedata:1.8.2")```
Can you share more info on why you're doing that and why you're using those versions?
Yes I'm also using Stripe for payments in my app that's why
Hi can you provide more context on #1377273842283708566 message
I suspect it's an issue with your build.gradle
when I looked up the issue first I found that it might be a problem of compose and in the beggining I didn't have those in my config
So I tried to get those implementations from the documentation but appearantly in didn't resolve issue
So you're saying you were getting java.lang.NoSuchMethodError: No static method collectAsState(Lkotlinx/coroutines/flow/StateFlow;Landroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State; in class Lcom/stripe/android/uicore/utils/StateFlowsComposeKt; or its super classes (declaration of 'com.stripe.android.uicore.utils.StateFlowsComposeKt' appears in /data/app/~~-dzFrEsHJ_nhHJ-RWmzsbA==/com.mynotificationapp-JIgvdIitsE-6O49QhC3w-w==/base.apk!classes22.dex)
before you modified your build.gradle?
You said Added this to android/app/build.gradle (because i had some kinda errors about them in logs of app:
Can you clarify specifically what the errors were too
yes exaclty
let me check if I still have that
I checked the logs history ,and before I even added the implementations for compose, I had the same cause for app crash
the file contains the logs I got yesterday : 05-27 15:29:12.850
I already tried that too but no use for my case
It didn't work?
It didn't work indeed
Ok I don't think we're going to figure this out in Discord. This will need someone to look into this directly. We're juggling too many threads to be able to give you an answer now
You should get a dm to create a support ticket. Please do that and it will get escalated to the right folks
Hello @zenith mango, we have sent you a direct message, please check it at https://discord.com/channels/@me/1377311097916362862
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Okay thank you so much
I will try for my part to create a whole new app and try to add identity to it and see if i will have the same issue or no if yes then i will do that
thank you for your time again