I have this error when I try to lunch my Flutter project, can someone explain it please or give a possible solution ?
ProcessException: %1 is not a valid Win32 application.
Command: C:UsersasmouAndroidStudioProjectspubrechandroidgradlew.bat -q -Ptarget-platform=android-arm64 -Ptarget=C:UsersasmouAndroidStudioProjectspubrechlibmain.dart -Pdart-defines=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
2
Answers
Solved this by simply creating a new project and moved project files to new project , looks like something was corrupted
Your gradlew wrapper executable is probably broken:
Rebuild wrapper:
or short:
MyProjectandroid> gradle wrapper
, if you have installed gradle globally.Do a clean build
Run you flutter app.