การตรวจสอบอุปกรณ์ Android
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การตรวจสอบอุปกรณ์ Android เลิกใช้งานแล้วใน Android Studio
3.1 และนำออกจาก Android Studio 3.2 ฟีเจอร์ที่ใช้ได้
ผ่านหน้าจออุปกรณ์ Android ได้ถูกแทนที่ด้วยคุณลักษณะใหม่ ตาราง
ข้อมูลด้านล่างนี้จะช่วยคุณเลือกฟีเจอร์ที่คุณควรใช้แทนฟีเจอร์ที่เลิกใช้งานแล้ว
และฟีเจอร์ที่ถูกนำออกไป
เริ่มการตรวจสอบอุปกรณ์ Android
วิธีเริ่มใช้แอปพลิเคชันการตรวจสอบอุปกรณ์แบบสแตนด์อโลนใน Android Studio 3.1 และ
ให้ป้อนข้อมูลต่อไปนี้ในบรรทัดคำสั่งใน
ไดเรกทอรี android-sdk/tools/
:
monitor
จากนั้นคุณสามารถลิงก์เครื่องมือกับอุปกรณ์ที่เชื่อมต่อโดยเลือกอุปกรณ์
จากแผงอุปกรณ์ หากพบปัญหาในการดูบานหน้าต่างหรือหน้าต่าง
เลือกหน้าต่าง > รีเซ็ตมุมมองจากแถบเมนู
หมายเหตุ: อุปกรณ์แต่ละเครื่องจะแนบไปกับโปรแกรมแก้ไขข้อบกพร่องได้เพียงรายการเดียว
ในแต่ละครั้ง เช่น หากคุณใช้ Android Studio ในการแก้ไขข้อบกพร่อง
แอปในอุปกรณ์ คุณจะต้องยกเลิกการเชื่อมต่อโปรแกรมแก้ไขข้อบกพร่องของ Android Studio
อุปกรณ์ก่อนที่จะแนบกระบวนการแก้ไขข้อบกพร่องจากอุปกรณ์ Android
ตรวจสอบ
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","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 UTC"],[],[],null,["# Android Device Monitor was **deprecated in Android Studio\n3.1 and removed from Android Studio 3.2**. The features that you could use\nthrough the Android Device Monitor have been replaced by new features. The table\nbelow helps you decide which features you should use instead of these deprecated\nand removed features.\n\n| Android Device Monitor component | What you should use |\n|----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Dalvik Debug Monitor Server (DDMS)** | This tool is deprecated. Instead, use [**Android Profiler**](/studio/profile) in Android Studio 3.0 and higher to profile your app's CPU, memory, and network usage. If you want to perform other debugging tasks, such as sending commands to a connected device to set up port-forwarding, transfer files, or take screenshots, then use the [**Android Debug Bridge (`adb`)**](/studio/command-line/adb), [**Android Emulator**](/studio/run/emulator), [**Device Explorer**](/studio/debug/device-file-explorer), or [**Debugger window**](/studio/debug). |\n| **Traceview** | This tool is deprecated. To inspect `.trace` files captured by [instrumenting your app](/studio/profile/generate-trace-logs) with the [Debug](/reference/android/os/Debug) class, record new method traces, export `.trace` files, and inspect real-time CPU usage of your app's processes, use the Android Studio [**CPU profiler**](/studio/profile/cpu-profiler). |\n| **Systrace** | If you need to inspect native system processes and address UI jank caused by dropped frames, use [**`systrace `**](/topic/performance/tracing/command-line) from the command line or the simplified **System Trace** in the [**CPU Profiler**](/studio/profile/cpu-profiler). The **CPU Profiler** provides many features for profiling your app's processes. |\n| **Tracer for OpenGL ES** | Use the **[Android GPU Inspector](/agi)**. |\n| **Hierarchy Viewer** | If you want to inspect your app's view hierarchy at runtime, use [**Layout Inspector**](/studio/debug/layout-inspector). If you want to profile the rendering speed of your app's layout, use **[Window.OnFrameMetricsAvailableListener](/reference/android/view/Window.OnFrameMetricsAvailableListener)** as described in [this blog post](https://android-developers.googleblog.com/2017/08/understanding-performance-benefits-of.html). |\n| **Pixel Perfect** | Use **[Layout Inspector](/studio/debug/layout-inspector)**. |\n| **Network Traffic tool** | If you need to view how and when your app transfers data over a network, use the [**Network Profiler**](/studio/profile/network-profiler). |\n\nStart Android Device Monitor\n----------------------------\n\nTo start the standalone Device Monitor application in Android Studio 3.1 and\nlower, enter the following on the command line in the\n\u003cvar translate=\"no\"\u003eandroid-sdk\u003c/var\u003e`/tools/` directory: \n\n```\nmonitor\n```\n\n\u003cbr /\u003e\n\nYou can then link the tool to a connected device by selecting the device\nfrom the **Devices** pane. If you have trouble viewing panes or windows,\nselect **Window \\\u003e Reset Perspective** from the menu bar.\n\n**Note:** Each device can be attached to only one debugger\nprocess at a time. So, for example, if you are using Android Studio to debug\nyour app on a device, you need to disconnect the Android Studio debugger from\nthe device before you attach a debugger process from the Android Device\nMonitor."]]