skip to Main Content

I’m working on a Flutter app that I imported from GitHub
But when I run it it does not work and gives this error
and when I create a new app it doesn’t show any problems

2

Answers


  1. Open your Project’s android folder in Android Studio and from Menu go to Android Studio > Preferences > Build,Execution,Deployment > Build Tools > Gradle. Now here change Gradle JDK version from 1.8 to 11 (given in dropdown).

    enter image description here

    Login or Signup to reply.
  2. Just create a new flutter project in studio and then replace your lib folder and dependencies in pubspec.yaml if there are some. This could defend you from unexpected errors while working with old projects.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search