I connected physical android device via USB to my computer(windows) and I try to debug flutter project on it. The project was just created by command on terminal of VScode.
flutter create my_mobile_app
and when I push debug/run button, it returns like this and crash.
Launching lib\main.dart on SM J727S in debug mode...
main.dart:1
����: �⺻ Ŭ���� org.gradle.wrapper.GradleWrapperMain��(��) ã�ų� �ε��� �� �����ϴ�.
����: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
How can I run/debug the program I made on my physical device? is it related with java? should I install or reinstall smth? The device i'm using is samsung sm-j727s
I tried reconnecting the device from computer and run on android studio but it doesn't make any changes, the divice is visible in the Device manager of android studio and flutter doctor shows every components are green.