Flutter build failed after adding dependency, Error like "Could not determine the dependencies of task ':compileReleaseJavaWithJavac"
This is a new, empty project with only the default code. I've attached screenshots of all relevant Gradle files and other version details. When I add dependencies, such as shared_preferences and others, my project encounters errors. This code working fine…