When I hit run on my Android Emulator it throws this error:
Could not find an option named "--web-renderer"
Which has nothing to do with compiling and installing an APK. I've been having so many difficulties getting my apps to compile with an Android Studio upgrade. I've changed JAVA_HOME a half dozen times. Installed a new NDK. This is just one of SO many blocks, I'm wondering if I'll ever program my apps again. It's frightful.
I've looked over similar threads and that's all stuff about getting the code to work as a web app. This is blocking Android Emulator. I tried pairing over WiFi to my phone to see if that would make a difference, but no, Android Studio Ladybug still throws the error.
Help appreciated.
Please check Run/Build Configurations to see if you set any run params there. if yes?
remove --web-renderer
, because if youre using the flutter latest its not gonna work with any '--web-renderer' because now flutter team made these changes :
Make --web-renderer=canvaskit
the new default (the current default is auto
).
Remove --web-renderer=auto
.
and you can simply build using
flutter build web
if you face any more problem please let me know, i would be happy to help you out.