Upgrading dependencies can be a complex and time-consuming task. Starting with Android Studio Panda 2, the AI agent automates and simplifies the dependency upgrade process, eliminating tedious work and improving project maintainability. With just a few clicks, you can seamlessly upgrade all your dependencies and get the benefits of the latest versions, so you can focus on building high-quality apps.
To update dependencies using the AI agent, do one of the following:
- Click Refactor (or right-click in the editor or project view) > Update dependencies.
In the
libs.versions.tomlfile, hover over a version that is underlined, click the Show Context Actions
menu that appears, and then click Update all libraries with Gemini.
Throughout the process, the agent provides a high-level overview of its upgrade plan so you can monitor progress step by step and review all changes before applying them. The agent iterates through the build process, resolving any build errors that arise from the upgrades. You can review, accept, or roll back changes, and you can stop the agent at any point.