#abdessalamxseeyoung_reactnative-compose-error

1 messages Β· Page 1 of 1 (latest)

shadow beaconBOT
#

πŸ‘‹ 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.

zenith mango
#

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!

viscid wraith
#

Hi again πŸ‘‹ were you able to locate any logs from the crash?

zenith mango
#

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 !

viscid wraith
#

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)```
zenith mango
#

Nope that's not me

viscid wraith
#

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.

zenith mango
#

Okay, Thank you so much for your time

viscid wraith
#

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.

shadow beaconBOT
tawny bronze
#

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?

zenith mango
tawny bronze
#

I suspect it's an issue with your build.gradle

zenith mango
tawny bronze
#

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

zenith mango
#

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

tawny bronze
#

Can you try adding

    ...
    buildFeatures {
        compose true
    }
}```
to your build.gradle?
zenith mango
#

I already tried that too but no use for my case

tawny bronze
#

It didn't work?

zenith mango
#

It didn't work indeed

tawny bronze
#

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

shadow beaconBOT
#

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.
zenith mango
#

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