failed to build local run on android device. AGP old version!

Troubleshooting

I tried to build a local run to test on my android phone through wifi.
I find the device and it start building, but then it fails and shows the error attached below. it seems like the Gradle Plugin is older version!! how is this possible and how can i update it without losing my changes in flutterflow?

What have you tried so far?

When i check he file mentioned in the error fix, i see that the version is indeed 8.1.0. but if i check the folder


Did you check FlutterFlow's Documentation for this topic?
No
4
3 replies