Hi guys. I have very interesting problem. Right after adding AppWrite dependencies to pabspec.yaml in my Flutter project I get givven this error:
This is an error I came across as well. Here's how to fix it:
- In your Flutter project, navigate to
android/appand open thebuild.gradlefile. - Scroll all the way down to where you see the
dependencies {}code block. - Replace the full
dependenciesblock with the following code:
dependencies {
constraints {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0") {
because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib")
}
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0") {
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib")
}
}
}
- Save the file, and run
flutter cleanfrom your project root. Follow it up withdart pub getandflutter pub getto install all the dependencies that were cleaned. - Run your project 🤞🏻
@Chewbacca @Samuel Kings Let me know if this works!
I will try it, thanks
@safwan thank you very much, It works
Glad it does! Can you change the title of this post to [SOLVED] Error after adding Appwrite to Pubscpec.yaml FLUTTER
okay
[SOLVED] Error after adding Appwrite to Pubscpec.yaml FLUTTER
@safwan Thanks a lot. Works like magic
glad it helped!
Recommended threads
- Dart runtime functions are timing out an...
My appwrite function is not executing at all and showing the error in error logs: I tried redeploying. Still no luck. I have set the function to ise maximum re...
- 403 The current user has been blocked.
Hello, I have a free plan; I've tried to access my project and I get the message "403 The current user has been blocked." I have database, sites, and auth in us...
- Am getting "The current user has been bl...
Was working on my app FLUTTER WEB APP, and suddenly, I have been blocked.... What can I do ? When I try to sign in to the console, I get "The current user has ...