前言
10 月 28 日,Android Studio Rabbit 2 稳定版发布:你可以自由选择AI Agent,不再只有 Gemini。
📋 目录
- 1:Rabbit 2 是什么,和 Rabbit 1 区别在哪?
- 2:BYOA 是怎么回事,40+ Agent 怎么接入?
- 3:Agent 能摸到 IDE 的哪些东西?
- 4:Skills 管理器
- 5:额外Feature:AI 变更审核和 LeakCanary
- 6:对我们 Android 开发者意味着什么?
🤔 Rabbit 2 是什么?
Android Studio 的最新稳定版:一个向 40+ 第三方 AI Agent 开放的 Android IDE。
和 Rabbit 1 的关键区别
Rabbit 1 的 AI 能力已经不弱,但有一个根本限制:你只能用 Google 的 AI。
Rabbit 2 已经解除这个限制:IDE 不再绑定某一家 AI,而是变成了 Agent 的工作台。你选 Agent,IDE 提供工具。
🔌 BYOA:40+ Agent 怎么接入?
BYOA,全称 Bring Your Own Agent,即:你在 IDE 里自己挑一个编码 Agent 来用。
支持哪些 Agent?
官方点名的有四家:
总共 40+ 个 ACP 兼容的 Agent 可选。
ACP = Agent Communication Protocol,Google 定义的开放协议。任何 Agent 只要实现这个协议,就能接入 Android Studio。
怎么用?
在 Android Studio 的 Agent 窗口(Agent Panel)随意选择、切换你想要的Agent。
🛠️ Agent 能摸到 IDE 的哪些东西?
在 Android Studio 里,Agent 可以直接操作 IDE 的核心工具:
这意味着什么?
传统的 AI 编码工具(比如 ChatGPT 网页版),你得把代码贴过去,它才能理解上下文。
但Android Studio 里的 Agent 真的看到了你的项目结构、构建产物和运行结果。它已经坐在你的工位上了。
Agent 的能力上限,不是模型本身决定的,而是它能摸到多少 IDE 工具决定的。Rabbit 2 给了 Agent 一整套工具箱。
📦 Skills 管理器:给 Agent 装"技能包"
Agent 有了工具,但不一定知道"Android 的最佳实践是什么"。
Skills 就是解决这个问题的——给 Agent 装上 Android 领域的专业知识。
什么是 Skills?
Skills 是 Google 官方提供的程序化指导包:把 Google 10 几年积累的 Android 最佳实践,打包成 Agent 能直接执行的指令集。
目前有 30+ 项技能,覆盖 20+ 个领域:
怎么用?
- 1:Agent 面板 > 三点菜单 > 管理 Agent 技能;
- 2:或者 Settings > Tools > AI > Skills 管理器;
- 3:浏览、安装你需要的技能包;
- 4:在对话中用 @ 调用已安装的技能。
比如你想把一个 XML 布局迁移到 Compose:
@android-xml-to-compose 帮我把 activity_main.xml 迁移到 Compose
Agent 会自动确定迁移范围、起草计划,把布局文件、View Binding 代码和逻辑一起转成 Compose。
🔍 额外Feature
还有一些额外很实用的feature:AI 变更审核 + LeakCanary
AI 变更审核
Rabbit 2 内置了 AI 驱动的代码审核:
- AI 自动生成潜在问题报告;
- 对于长变更,可以请求引导式演示(Guided Walkthrough)——AI 把差异块分组排序成逻辑主题,像 PPT 一样一页页讲;
Agent 写代码 → AI 审代码 → Agent 修问题。整条链路在 IDE 内闭环。
LeakCanary 集成
LeakCanary 是 Android 最流行的内存泄漏检测库。Rabbit 2 把它直接集成进了性能分析器。
关键变化:
- 堆转储分析在电脑上运行,不影响手机性能;
- 分析速度提高近 2 倍,token 使用量减少最多 25%;
- 发现泄漏后,有一个 "Fix with AI" 按钮——点一下,Agent 直接帮你修。
- 以前:发现泄漏 → 看堆栈 → 自己分析 → 自己改代码。
- 现在:发现泄漏 → 点"用 AI 修" → Agent 帮你改 → 你审一下。
内存泄漏从"人肉排查"变成了"Agent 一键修"。这是 Rabbit 2 把 Agent 做进工具链最实在的一个例子。
🧑💻 对 Android 开发者意味着什么?
该选哪个 Agent?
选 Agent 不是选"最强模型",是选"最适合你工作流的搭档"。
Rabbit 2 的意义不是某个 Agent 有多强,而是 Android Studio 从"AI 工具"变成了"Agent 平台"。这个转变,比任何单个功能都重要。
最后
用一句话总结 Android Studio Rabbit 2:
IDE 不再绑定某一家 AI。你选 Agent,IDE 提供工具箱。
本文由 AI图鉴自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
Foreword
On October 28, Android Studio Rabit 2 stable version publish: You can choose AI Agent, no longer only Gemini.
Contents
- 1: What's Rabbit 2, the difference between Rabbit 1?
- 2: What's going on, 40+ Agent?
- 3:Agent, what can IDE feel?
- 4:Skills Manager
-5: Additional Feature: AI Change Audit and LeakCanary
- 6: What does it mean for us Android developers?
What is Rabbit 2?
Android Studio's latest steady version: An Android IDE open to 40+ third party AI Agent.
Key difference with Rabit 1
Rabbit 1 has no weak AI but has a fundamental limitation: you can only use Google AI.
Rabbit 2 has removed this restriction: Ide no longer binds a family AI, but instead becomes Agent's desk. You choose Age, Ide to provide tools.
BYOA: 40+Agent, how do we access it?
BYOA, full name of Bring Your Own Agent, that is, you pick an encoding in IDE for Agent.
Support what?
There are four official names:
A total of 40+ACP compatible Agent is optional.
ACP = Open Agreement for the Definition of Agent Community Production, Google. Any Agent can access Android Studio as soon as it's done.
How?
The Agent window in Android Studio selects and switches to the Agent you want.
What does Agent feel about IDE?
In Android Studio, Agent can directly operate the core IDE tools:
What does that mean?
Traditional AI coding tools (such as the ChatGPT web version) you have to post the code to understand context.
But Agent in Android Studio really saw your project structure, construction products and running results. It's already sitting on your desk.
Agent's capacity ceiling is not determined by the model itself, but by how many IDE tools it can touch. Rabbit 2 gave Agent a set of toolboxes.
📦Skills Manager: "Skiller Pack" for Agent
Agent has tools, but he doesn't necessarily know what "Android's best practice" is.
Skills is the solution to this problem -- putting on Agent expertise in the Android field.
What's Skills?
Skills is an official Google programmable guidance package that wraps together the 10-year-old Android best practice into a set of instructions that Agent can directly implement.
There are currently 30+ skills covering 20+ areas:
How?
- 1: Agent Panel > Three Point Menu > Management Agent Skills;
- 2: or Settings > Tools > AI > Skills Manager;
- 3: Browse and install the skills packages you need;
-4: Call installed skills in dialogue @.
Like you want to move an XML layout to Compose:
@android-xml-to-compose Help me move activity main.xml to Compose
Agent will automatically determine the scope of the migration, draft the plan, and translate the layout file, the View Binding code and logic into Compose.
Additional Feature
There are additional practical features: AI Change Audit + LeakCanary
AI Revision Review
Rabbit 2 has an AI-driven code audit:
- AI automatic generation of potential problem reports;
- For long changes, a guided demonstration can be requested - AI sorted the difference blocks into a logical theme, speaking on a page like PPT;
Agent writes code →AI review code →Agent repair problem. The entire link is closed in IDE.
LeakCanary Integration
LeakCanary is the most popular memory leak detector in Android. Rabbit 2 integrated it directly into the performance analyser.
Key changes:
- Storage analysis operated on computers without affecting mobile phone performance;
- The speed of analysis has increased nearly twofold and token usage has been reduced by up to 25 per cent;
- After the leak was discovered, there was a "Fix with AI" button -- click, Agent just fix it for you.
- Before: Found leaks, looked at stacks, analyzed themselves, changed codes.
- Now: Discover the leaks with "Ai fix" →Agent → → → → → → 你 你 你 你 你 你.
The memory leak went from "human meat inventory" to "Agent one key fix." This is the most tangible example of Rabbit 2 putting Agent into the tool chain.
What does it mean to Android developers?
Which one?
Pick Agent, not the best model, but the best partner for workflow.
Rabbit 2 is not about how powerful a person is, but about Android Studio from "AI tool" to "Agent platform". This shift is more important than any single function.
Finally.
Android Studio Rabit:
IDE no longer binds a family AI. You choose Agent, Ide to provide the toolbox.
Auto-fetched and translated by AI Atlas. All rights belong to the original author.