To develop a flutter project, sometimes when you try to run mobile emulator from Android Studio or Microsoft Visual Studio Code, you may encounter error like –
“A problem occurred evaluating root project ‘android’ flutter.”
The reason might be different for each case but for me the reason was that all SDK package licenses was not accepted by me. I found it by ran the command
‘flutter doctor‘ from flutter console. Please see below screenshot –
Flutter console automatically prompted me to press Y/N to accept licenses agreement. I have pressed ‘Y’ to accept it. Then i ran ‘flutter doctor‘ again now it shown the status.
Then I opened the Android Studio and executed the emulator and it ran perfectly.