Android Studio 提供的信息与您可以使用以下任一工具获取的信息类似,具体取决于您的操作系统:
Mac:从终端运行 system_profiler SPUSBDataType
Linux:从终端运行 lsusb -vvv
更新了 Google 服务的登录流程
现在,您只需完成一次身份验证步骤,即可更轻松地登录多项 Google 服务。无论您想在 Android Studio 中使用 Gemini、Firebase for Android Device Streaming、Google Play for Android Vitals 报告,还是想使用所有这些实用服务,都可以通过新的登录流程更轻松地开始使用。如果您刚开始接触 Firebase 并想要使用 Android 设备流式传输功能,Android Studio 会自动为您创建一个项目,以便您快速开始流式传输真实的物理 Firebase 设备。借助精细的权限范围设置,您可以随时控制哪些服务有权访问您的账号。若要开始,请点击个人资料头像,然后使用您的开发者账号登录。
设备界面设置快捷方式
为了帮助您构建和调试界面,我们在 Android Studio 的 Running Devices 工具窗口中引入了设备界面设置快捷键。使用快捷方式查看常见界面设置(例如深色主题、字体大小、屏幕大小、应用语言和 TalkBack)的效果。您可以将这些快捷方式用于模拟器、镜像实体设备以及从 Firebase Test Lab 流式传输的设备。
请注意,只有当设备上已安装 TalkBack 和随选朗读等无障碍功能设置时,这些设置才会显示。如果您没有看到这些选项,请从 Play 商店下载 Android 无障碍套件应用。
设备界面设置快捷方式适用于搭载 API 级别 33 或更高版本的设备。
“Running Devices”窗口中的设备界面设置快捷键
采用以任务为中心的方法,改进了性能分析器,使其运行速度更快
我们改进了 Android Studio 性能分析器的性能,因此使用可分析性能的应用捕获系统轨迹等常用性能分析任务的启动速度现在最高可提高 60%。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Android Studio Koala Feature Drop | 2024.1.2 (August 2024)\n\nThe following are new features in Android Studio Koala Feature Drop.\n\nPatch releases\n--------------\n\nThe following is a list of patch releases in Android Studio Koala Feature Drop.\n\n### Android Studio Koala Feature Drop \\| 2024.1.2 Patch 1 and AGP 8.6.1 (September 2024)\n\nThis version contains minor improvements and [bug\nfixes](/studio/releases/fixed-bugs/studio/2024.1.2#android-studio-koala-feature-drop-%7C-2024.1.2-patch-1).\n\nAndroid Device Streaming: more devices and improved sign-up\n-----------------------------------------------------------\n\n[Android Device Streaming](/studio/run/android-device-streaming) now includes the\nfollowing devices, in addition to the portfolio of 20+ device models already\navailable:\n\n- Samsung Galaxy Fold5\n- Samsung Galaxy S23 Ultra\n- Google Pixel 8a\n\nAdditionally, if you're new to Firebase, Android Studio automatically creates\nand sets up a no-cost Firebase project for you when you sign in to Koala Feature\nDrop to use Device Streaming. So, you can get to streaming the device you need\nmuch faster.\n[Learn more about Android Device Streaming quotas](https://firebase.google.com/docs/test-lab/usage-quotas-pricing#device-streaming),\nincluding promotional quota for the Firebase Blaze plan projects available for a\nlimited time.\n\nUSB cable speed detection\n-------------------------\n\nAndroid Studio now detects when it's possible to connect your Android device\nwith a faster USB cable, and suggests an upgrade that maximizes your device\ncapabilities. Using an appropriate USB cable optimizes app installation time and\nminimizes latency when using tools such as the Android Studio debugger.\n\nThe whole USB chain leading to a device is verified. If you see a \"Connection\nspeed warning\" notification, check the version certification of the cables but\nalso any hubs, including the monitor's hub, involved in the USB chain.\n\nUSB cable speed detection is available with the following:\n\n- Devices running API level 30 (Android 11) or higher.\n- Workstations running macOS or Linux. Windows support is coming soon.\n- The latest version of the [SDK Platform Tools](/tools/releases/platform-tools).\n\nThe information provided by Android Studio is similar to the information you can\nget using one of the following tools, depending on your OS:\n\n- Mac: running `system_profiler SPUSBDataType` from the terminal\n- Linux: running `lsusb -vvv` from the terminal\n\nUpdated sign in flow to Google services\n---------------------------------------\n\nIt's now easier to sign in to multiple Google services with one authentication\nstep. Whether you want to use Gemini in Android Studio, Firebase for Android\nDevice Streaming, Google Play for Android Vitals reports, or all these useful\nservices, the new sign in flow makes it easier to get up and running. If you're\nnew to Firebase and want to use Android Device Streaming, Android Studio\nautomatically creates a project for you, so you can quickly start streaming a\nreal physical Firebase device. With granular permissions scoping, you will\nalways be in control of which services have access to your account. To get\nstarted, click the profile avatar and sign in with your developer account.\n\nDevice UI setting shortcuts\n---------------------------\n\nTo help you build and debug your UI, we have introduced Device UI\nsetting shortcuts in the **Running Devices** tool window in Android Studio.\nUse the shortcuts to view the effect of common UI settings such as dark\ntheme, font size, screen size, app language and TalkBack. You can use the\nshortcuts with emulators, mirrored physical devices, and devices streamed\nfrom Firebase Test Lab.\n\nNote that accessibility settings such as **TalkBack** and **Select to Speak**\nonly show up if they are already installed on the device. If you don't see\nthose options, download the Android Accessibility Suite app from the\nPlay Store.\n\nDevice UI setting shortcuts are available for devices running API level 33 or\nhigher.\nDevice UI Setting Shortcuts in Running Device Window\n\nFaster and improved Profiler with a task-centric approach\n---------------------------------------------------------\n\nWe've improved the performance of the Android Studio Profiler such that popular\nprofiling tasks like capturing a system trace with profileable apps now\nstart up to 60% faster.\n\nThe Profiler's task-centric redesign also makes it easier to start the task\nyou're interested in, whether it's profiling your app's CPU, memory, or power\nusage. For example, you can start a system trace task to profile and improve\nyour app's startup time right from the UI as soon as you open the Profiler.\n\nWear OS tiles preview panel\n---------------------------\n\nTiles preview panel in Android Studio.\n\nBy including several dependencies on version 1.4 of the Jetpack Tiles library,\nyou can\n[view snapshots of your Wear OS app's tiles](/training/wearables/tiles/preview).\nThis preview panel is particularly useful if your tile's appearance changes in\nresponse to conditions, such as different content depending on the device's\ndisplay size, or a sports event reaching halftime.\n\nCompose Glance widget previews\n------------------------------\n\nAndroid Studio Koala Feature Drop makes it easy to preview your [Jetpack Compose\nGlance widgets](/jetpack/compose/glance) directly within the IDE. Catch\npotential UI issues and fine-tune your widget's appearance early in the\ndevelopment process. To get started follow these steps:\n\n1. Add the dependencies.\n 1. Add the dependencies to your version catalog: \n\n ```transact-sql\n [versions]\n androidx-glance-preview = \"1.1.0-rc01\"\n\n [libraries]\n androidx-glance-preview = {\n group = \"androidx.glance\",\n name = \"glance-preview\",\n version.ref = \"androidx-glance-preview\" }\n androidx-glance-appwidget-preview = {\n group = \"androidx.glance\",\n name = \"glance-appwidget-preview\",\n version.ref = \"androidx-glance-preview\" }\n \n ```\n 2. Add the dependencies to your app-level `build.gradle.kts` file: \n\n ```kotlin\n debugImplementation(libs.androidx.glance.preview)\n debugImplementation(libs.androidx.glance.appwidget.preview)\n \n ```\n2. Import the dependencies in the file where you have Glance UI: \n\n ```kotlin\n import androidx.glance.preview.ExperimentalGlancePreviewApi\n import androidx.glance.preview.Preview\n \n ```\n3. Create a preview of your Glance widget: \n\n ```kotlin\n @Composable\n fun MyGlanceContent() {\n GlanceTheme {\n Scaffold(\n backgroundColor = GlanceTheme.colors.widgetBackground,\n titleBar = { ... },\n ) {\n ...\n }\n }\n }\n\n @OptIn(ExperimentalGlancePreviewApi::class)\n @Preview(widthDp = 172, heightDp = 244)\n @Composable\n fun MyGlancePreview() {\n MyGlanceContent()\n }\n \n ```\n\nLive Edit for Compose enabled by default and new shortcut\n---------------------------------------------------------\n\n[Live Edit](/develop/ui/compose/tooling/iterative-development#live-edit) is now\nenabled in manual mode by default. It has increased stability and more robust\nchange detection, including support for import statements.\n\nNote that starting with Android Studio Koala Feature Drop Beta 1, the default\nshortcut to push your changes in manual mode has been updated to\n\u003ckbd\u003eCommand+'\u003c/kbd\u003e. You can still customize it on the **Keymap** settings\npage."]]