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 實體裝置。透過精細的權限範圍,您隨時都能控管哪些服務可存取您的帳戶。如要開始使用,請按一下個人資料顯示圖片,然後登入開發人員帳戶。
裝置 UI 設定捷徑
為了協助您建構及偵錯 UI,我們在 Android Studio 的「Running Devices」工具視窗中,推出了裝置 UI 設定捷徑。使用快捷鍵查看常見 UI 設定的效果,例如深色主題、字型大小、螢幕大小、應用程式語言和 TalkBack。您可以將捷徑用於模擬器、鏡像實體裝置,以及從 Firebase Test Lab 串流傳輸的裝置。
請注意,裝置必須已安裝「TalkBack」和「隨選朗讀」等無障礙設定,才會顯示在畫面上。如果沒有看到這些選項,請從 Play 商店下載 Android 無障礙套件應用程式。
裝置 UI 設定捷徑適用於搭載 API 級別 33 以上版本的裝置。
在「Running Devices」視窗中顯示裝置 UI 設定捷徑
以以工作為中心的方法,讓 Profiler 更快速且更完善
我們改善了 Android Studio Profiler 的效能,讓常用剖析工作 (例如使用可分析應用程式擷取系統追蹤記錄) 的速度最多加快 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"]],["上次更新時間: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."]]