0

When I start to debug Flutter Web application in Android studio it opens on a arbitrary port ( some time http://localhost:63537/ or http://localhost:54475/ ), each time and so then I have to add that port number as OAuth 2.0 Client . The best could be If port number could be specified in Android studio similar to as shown in answer .

Before someone else mark this question as duplicate, it is about Android studio and not command line, so that the break points can be used for debugging.

puzzled
  • 509
  • 1
  • 5
  • 18

1 Answers1

3

if running from command line then

flutter run -d web-server --web-port 54475

if running from Android studio then go to Run-> Edit Configuration

enter image description here

then specify additional run args as required port number

Additional run args

puzzled
  • 509
  • 1
  • 5
  • 18