I'm encountering an error while trying to build my Flutter project. The error message I'm receiving is:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to find Platform SDK with path: platforms;android-33
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 16s
Running Gradle task 'assembleDebug'... 19.0s
Exception: Gradle task assembleDebug failed with exit code 1
I have already tried updating my Flutter SDK and ensuring that the necessary Android SDK platform is installed. However, the issue persists. I'm not sure what else to try or how to resolve this error.
If anyone has encountered a similar issue or has any suggestions on how to resolve this error, I would greatly appreciate your assistance. Thank you!
For me it was an error like Failed to find Platform SDK with path: platforms;android-32 and I solved it by following the below steps:
And Voila! it's fixed now!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With