Closed sakibguy closed 2 years ago
1- make sure flutter cmd added on env var and working from cmd prompt.
2- from studio -> invalidate caches -> invalidate cache & restart
3- close studio & start again
4-flutter clean'
didn't work
5- flutter pub upgrade --major-versions
6- Build and run (studio green button)
One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to D:\Android\work\myalice_app\android\app\build.gradle:
android {
compileSdkVersion 33
...
}
upgraded compile target 33
After cmd ended
Follow same err solution: https://github.com/sakibguy/worked-issues/issues/40#issuecomment-1187187784
srchttps://stackoverflow.com/questions/54552962/flutter-build-error-process-command-e-flutter-apps-flutter-bin-flutter-bat 1- i deleted the pubspec.lock 2- flutter clean 3- flutter pub get
A- Install cmd-line tools by sdk manager B- flutter doctor (ensure all checked) C- flutter doctor --android-licenses
The solution that worked for me was:
1-Delete pubspec.lock file 2-Do flutter pub get 3-Run the project
And it worked.
Failed
Maybe this outdated but should help someone.
Yesterday I Just restarted my pc and got this issue. I tried to search for the solution to this problem but nothing works in my case.
Solution
Just delete your flutter folder (Flutter Source) and then reinstall it. Your problem will solve.
https://github.com/flutter/flutter/issues/49507#issuecomment-670560212
Problem
Snap