15

When I press Tools > AGP Upgrade Assistant button, nothing happens. The button that I press

I am using Arctic Fox 2020.3.1 Patch 4. I also tried this on Bumblebee 2021.1.1 and the same problem occurs.

Other maybe relevant info

Fluter Android Studio plugin 63.2.1
Dart Android Studio plugin 203.8452
Dart 2.15.1
Flutter 2.8.1
Android gradle plugin 3.6.0
Gradle 6.1.1-all
Pero122
  • 892
  • 11
  • 25

2 Answers2

19

The APG Upgrade Assistant opens only when you open the Android folder as an Android project

HWK
  • 362
  • 2
  • 6
  • Yes, originally I was opening my project on the ../android folder. Once I opened the android folder as a project the AGP Upgrade Assistant opened :) – Pero122 Feb 04 '22 at 08:50
  • Just to add my voice to the choir: This is what worked for me. And the upgrade assistant then updgraded Gradle and its dependencies -which is what I needed. – Joe Apr 03 '22 at 13:06
  • 10
    I have the same problem now with Android Studio Flamingo | 2022.2.1 Patch 1. The described solution does not work for me. Anybody else with the same problem? – Harry May 04 '23 at 12:34
  • 1
    @Harry, I experience the same with 2022.2.1 Patch 1 – Andriy May 08 '23 at 11:32
  • 2
    Is there a reason for this roundabout behavior? This still doesn't work for me and I open my project by going to File > Open > MyProject. – default123 May 08 '23 at 21:07
  • 2
    There is a new option under Tools > Flutter > Open for editing in Android Studio. After a lot of syncing and indexing you can run the APG upgrade assistant from the Tools menu. I could upgrade to 7.4.1, but a subsequent upgrade to 8.0.1 failed..... – HWK May 09 '23 at 19:26
  • Verified, Fails on this | Android Studio Flamingo | 2022.2.1 Patch 1 – Mohit Arvind khakharia May 18 '23 at 05:19
0

As HWK's answer you should open Tools---> Flutter ---> Open Android module in Android Studio

enter image description here

It will open another window which opens the Android folder as in the below image.

enter image description here

Nuwan Thisara
  • 226
  • 5
  • 15