Issues Compiling my app after Stripe Implementation #1787
max-anders
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am facing build errors after trying to implement Stripe into my Flutter project. The update steps seems to have caused multilpe conflicts, possibly with other packages. encountered various errors related to Kotlin, Java, Gradle, and other dependencies.
I followed each step mentionned in the guide and copied some of the values provided on the example github repo.
tried to update build gradle manually but had some errors then I tried to update it using upgrade assistant from android studio (initially it didn't show up)
I tried those commands in android studio (opening both android as a project and the project itself)
(flutter clean, flutter pub cache repair, flutter pub outdated ) and using invalidate cache option in android
I tried various version of kotlin (initially had 1.7.10, tried every version from there) some times it says that it can't find the kotlin version (1.8.10) but it seems change the gradle version has an effect on this
I tried flutter upgrade and so I tried flutter downgrade and it doesnt change anything (downgraded from flutter 3.22.. to 3.19.2 if I recall corectly)
I tried using multiple versions of the stripe package, curently on 10.0.0
One long error looked something like this
current error :
`* What went wrong:
Execution failed for task ':on_audio_query_android:compileDebugKotlin'.
my build.gradle.
By the way, I got a missing namespace error (even though I have one) that I managed to fix by adding this to the build gradle
´´´
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
afterEvaluate { project ->
if (project.hasProperty('android')) {
project.android {
if (namespace == null) {
namespace project.group
}
}
}
}
}
´´´
Can anyone help me debug or provide a way to get my project to compile again?
Thank you for your help.
Beta Was this translation helpful? Give feedback.
All reactions