I decided that today I would upgrade android studio and all of the recommended upgrades for a flutter application I am working on. After doing this, when I run the app over usb on an android device with "flutter run --verbose", I get a white screen on my phone with the following error:
Error connecting to the service protocol: failed to connect to http://127.0.0.1:63958/aZGMSZRNaEY=/
On the following github help page(https://github.com/flutter/flutter/issues/25112) I found the solution that seems to be working for people:
"One of the causes of this error is Android 9. In this version all Unity3D http requests stopped working. Http request are disabled by default in Android 9. In flutter I installed Android 8.1. Another solution is to tweak AndoidManifest.xml adding in application usesCleartextTraffic="true""
The problem is, I am not completely familiar with android and flutter and what would be the best thing to do. Would someone mind giving me detailed instructions on how to do this and which one of these solutions would be best? I have been using Atom IDE. Thanks!