skip to Main Content

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


  1. Chosen as BEST ANSWER

    Solved this by simply creating a new project and moved project files to new project , looks like something was corrupted


  2. Your gradlew wrapper executable is probably broken:

    Rebuild wrapper:

    cd MyProjectandroid
    MyProjectandroid> C:UsersMyUSername.gradlewrapperdistsgradle-7.x-binf1w0cc9nuo0eivz97x2xlu9svgradle-7.xbingradle wrapper
    

    or short: MyProjectandroid> gradle wrapper, if you have installed gradle globally.

    Do a clean build

    MyProjectandroid> gradlew clean build
    

    Run you flutter app.

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