How to build apps faster with Android Studio Panda

How to build apps faster with Android Studio Panda

Android Developers

0:00 [BIRDS CHIRPING] MATT DYOR: App-building just got a whole lot smarter

0:04 with the latest features in Android Studio's Panda releases.

0:08 [MUSIC PLAYING] You can build a working prototype with just one prompt,

0:16 using the New Project Assistant.

0:18 Say goodbye to boilerplate starter templates that

0:20 just get you to the start line.

0:22 With a New Project Assistant, you

0:24 describe what you want to build, upload images for style

0:27 inspiration if you'd like, and then watch the agent create

0:30 a detailed project plan.

0:32 When you're ready, the agent turns your plan

0:35 into a first draft of your application

0:37 using Android's best practices, like Kotlin, Compose,

0:40 and the latest stable libraries.

0:42 And don't forget to add your paid Gemini API

0:44 key to get access to the fastest and latest models from Google.

0:48 They come with stunning image generation and elegant design

0:51 capabilities.

0:52 Try the New Project Assistant in Android Studio today.

0:57 Keeping your project dependencies up to date

0:59 is time-consuming and often causes cascading build errors.

1:02 You fix one issue by updating a dependency, only

1:05 to introduce a new issue somewhere else.

1:08 The Version Upgrade Assistant in Android Studio

1:10 just made that a problem of the past.

1:13 Simply right-click in your version catalog,

1:15 and select AI, and then Update Dependencies.

1:18 The agent runs multiple automated rounds,

1:21 attempting builds, reading error messages,

1:23 and adjusting versions until the build succeeds.

1:26 Let AI do the heavy lifting, when

1:28 it comes to version updates, with a Version Upgrade

1:30 Assistant.

1:31 [SYNTH MUSIC FLOURISH] Sometimes you need a Google search

1:33 to get current documentation, to find proper version

1:36 numbers, updated APIs.

1:38 Since Android Studio's Otter 2 release,

1:40 Gemini and Android Studio has access

1:42 to the Android knowledge base for official Android

1:45 documentation.

1:46 But what about all those third-party libraries

1:48 you use, like Coil, Koin, and Moshi?

1:51 Now, with Agent Web Search, Gemini

1:53 can query Google directly to fetch current reference

1:56 materials from anywhere on the web.

1:58 It'll search automatically when it's helpful,

2:00 or you can tell it exactly what you want to find.

2:02 Enjoy Agent Web Search in Android Studio's latest release,

2:06 and see how much Gemini can speed up your workflow.

2:08 [SYNTH MUSIC FLOURISH] Create a more helpful AI agent by using skills

2:12 in Android Studio.

2:13 Skills are specialized instructions

2:15 that teach the agent new capabilities

2:17 and best practices for a workflow

2:19 that the agent can leverage as needed.

2:21 This reduces the level of detail required for your prompts.

2:24 You and members of your team can create

2:26 skills that tell the agent exactly how you

2:28 want to handle specific tasks in your code base.

2:31 For example, you could create a custom code-review skill.

2:35 To build a skill, you just place a SKILL.md file inside

2:38 your project's .skills directory.

2:41 Add a name and description, and your skill is ready.

2:44 Once you've created a skill, the agent will be able to use it

2:47 automatically, and you can manually trigger the skill

2:49 by typing"@" and the skill name.

2:52 Check out the documentation to learn more

2:53 about how to create skills for your code base.

2:56 Or better yet, ask your agent to help you build a new skill,

2:59 and it will guide you through the details.

3:01 Try adding a new skill in Android Studio today.

3:04 [SYNTH MUSIC FLOURISH] You control your code base, and you can now

3:07 be more deliberate with which data and capabilities

3:10 you choose to share with AI agents.

3:12 The new granular agent permissions in Android Studio

3:15 let you decide what agents can do for you.

3:18 When Agent Mode needs to read files, run shell commands,

3:21 or access the web, it explicitly asks for your permission.

3:25 You can choose to allow an action just once or hit "Always

3:28 allow" for more trusted operations.

3:31 Agent permissions are intuitive to set up and to use.

3:34 For example, granting high-level permissions

3:37 automatically authorizes related subtools,

3:40 while commands you have approved run automatically

3:43 without interrupting your flow.

3:45 And accessing sensitive files, like SSH keys,

3:48 will always require your explicit sign-off.

3:51 You can even use an optional sandbox

3:53 to have even more control over the agent.

3:55 Try our agent permissions and sandboxing

3:57 in the latest release of Android Studio.

4:00 [SYNTH MUSIC FLOURISH] We're making it easier to build Android apps for cars.

4:04 Building apps for the car used to mean

4:06 wrestling with complex configurations

4:08 just to get the app to build.

4:10 Now you can accelerate your development

4:12 with a new Empty Car App Library App template in Android Studio.

4:16 This template takes care of the required boilerplate code

4:19 for a driving optimized app on both Android Auto and Android

4:22 Automotive OS, saving you time and effort.

4:25 Instead of getting bogged down in setup,

4:27 you can now focus on creating the best

4:28 experience for your users.

4:30 Try it out in the latest version of Android Studio.

4:33 [SYNTH MUSIC FLOURISH] And next,

4:35 Trevor is going to talk to you about planning mode.

4:37 [SYNTH MUSIC FLOURISH] TREVOR JOHNS:

4:38 Before your agent starts making big code changes,

4:41 you need a map.

4:41 Otherwise, you're just lost in the bamboo.

4:44 That's why we're adding Planning Mode.

4:46 This lets the agent step back, reason, and capture a plan

4:49 that you can review before it writes a single line of code.

4:53 Using Planning Mode is simple.

4:54 Just switch your conversation mode to Planning,

4:56 and enter your prompt.

4:57 First, the agent will generate an implementation plan.

5:00 When you review the plan, you can fix mistakes

5:02 or clarify which options to use, all

5:04 before the agent has spent any time

5:05 or tokens heading in the wrong direction.

5:07 Once you're happy with the plan, hit Submit With Comments,

5:10 and the agent will verify that the revised plan looks good.

5:13 To stay on track, which is particularly

5:15 important with larger changes, Planning Mode

5:17 generates a Task List artifact.

5:19 You can sit back and watch as the agent completes

5:21 all the tasks.

5:23 After it's done, the agent provides a Walkthrough artifact

5:26 that gives you a summary of what work has been done.

5:28 Your plan is complete, and your high-quality code change

5:31 is ready.

5:31 [SYNTH MUSIC FLOURISH] MATT DYOR:

5:33 Upgrade your code completion in the latest release

5:35 of Android Studio.

5:36 We all know the classic autocomplete.

5:38 Android Studio anticipates what you're going to type next

5:40 and shows you the text that you can

5:41 accept with a single keystroke.

5:43 But the change you need may not be where your cursor is.

5:46 It may be a new import or a change to a function call—

5:49 something related to what you're working on, but away

5:51 from your cursor.

5:52 Next-edit prediction takes code completion

5:54 to a higher level or a lower level.

5:57 It doesn't just suggest the next word.

5:58 It anticipates the next logical edit

6:01 in your workflow based on your recent code changes.

6:03 If you update a constructor, the agent

6:05 might suggest the corresponding change in your preview code,

6:08 away from the current cursor position.

6:09 Keep your momentum and stay in the flow

6:11 with next-edit prediction.

6:12 Try it in the latest version of Android Studio.

6:15 [SYNTH MUSIC FLOURISH] TREVOR JOHNS: We're making it easier

6:17 to build AI-powered Android apps.

6:18 Accelerate your generative AI app development

6:20 with the new Gemini API starter template in Android Studio.

6:23 This template takes care of the boilerplate code

6:26 and guides you through a seamless,

6:27 built-in setup wizard that gets your app connected

6:29 to Gemini in just a few clicks.

6:31 To use it, just select the Gemini API starter template

6:34 and give your project a name.

6:36 The setup will take you through the process

6:37 of creating a new, no-cost Firebase

6:39 project for your Android app.

6:41 It will then enable the necessary Gemini APIs, and links

6:44 everything across Gemini, Firebase, and your project.

6:47 Out of the box, you'll have the basic elements

6:49 of a simple Gemini-powered app that you

6:51 can use to make sure everything is properly configured,

6:53 and then you can start customizing it as needed,

6:56 all without leaving Android Studio.

6:58 Try it out in the latest Android Studio Panda release.

7:00 We're excited to see what you build.

7:02 [SYNTH MUSIC FLOURISH] MATT DYOR: It's "Panda-monium."

7:04 [MUSIC PLAYING] [BIRDS CHIRPING]

Study with Looplines Download Captions Watch on YouTube