AGP Upgrade Assistant window not opening in Android Studio
Asked Answered
W

2

29

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
Wanonah answered 27/1, 2022 at 14:20 Comment(1)
Having exactly the same problem! did you find any solution for that?Donniedonnish
F
34

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

Fourfold answered 3/2, 2022 at 13:8 Comment(9)
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 :)Wanonah
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.Ebullient
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?Wildman
@Harry, I experience the same with 2022.2.1 Patch 1Aga
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.Gobbledygook
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.....Fourfold
Verified, Fails on this | Android Studio Flamingo | 2022.2.1 Patch 1Flanigan
Useless answer. You should show how to open the Android Folder as an Android Project.Incommodity
You really have to go through File > Open and open the Android directory under your flutter project. Wait until the Android Studio is ready with all kind of analysis and update stuff. Then go to Tools > AGP update assistantFourfold
H
4

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

Horrorstruck answered 20/5, 2023 at 11:47 Comment(1)
Nope, that does not work. you really have to go through File > Open and open de Android directory under your flutter project. Wait until the Android Sudio is ready with all kind of analysis and update stuf. Then go to Tools > AGP update assistantFourfold

© 2022 - 2024 — McMap. All rights reserved.