Home > Net >  Android Studio - I imported a file from GitHub but when I run it it gives an error
Android Studio - I imported a file from GitHub but when I run it it gives an error

Time:03-27

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

CodePudding user response:

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.

CodePudding user response:

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

  • Related