原文:https://blog.csdn.net/yuanxiang01/article/details/80494842?utm_source=copy
為什么Android Studio 3.0中找不到Android Device Monitor?
因為自Android Studio 3.0開始棄用Android Device Monitor,Android Developers官網上的原話是:
Android Device Monitor is a standalone tool that provides a UI for several Android app debugging and analysis tools.
However, most components of the Android Device Monitor are deprecated in favor of updated tools available in Android Studio 3.0 and higher. The table below helps you decide which developer tools you should use.
譯文:
Android設備監視器是一個獨立的工具,為幾個Android應用調試和分析工具提供了一個UI。
但是,大多數Android設備監視器組件已棄用,以支持Android Studio 3.0和更高版本中提供的更新工具。下表幫助您決定應該使用哪些開發人員工具。
圖1.Android Developers關於Android Device Monitor的說明頁
如何在Android Studio 3.0中使用Android Device Monitor?
雖然說被“棄用”,但是不代表不支持,我們還是可以通過其他方式來使用Android Device Monitor,具體使用方式如下:
在android-sdk/tools/目錄的命令行中輸入以下內容:
monitor1
如果你不知道你的Android SDK安裝在哪個目錄,可以在Android Studio的設置1中查看:
圖2.Android Studio設置界面
進入CMD窗口2,cd到目標文件夾tools下,然后輸入命令montior:
圖3.cmd界面
接下來,我們就可以看到期待已久的Android Device Monitor界面了3:
圖4.Android Device Monitor界面
Android Studio的設置界面快捷鍵:Ctrl+Alt+S ↩按Windows鍵+R進入CMD窗口 ↩進入Android Device Monitor的前提是已經打開了Android設備模擬器 ↩
Android studio3.0打開Device File Explore(文件管理器)的方法看到網上AS3.0新增加的查看手機文件的新功能,全部都是轉載的,沒有幾個人心細的把如何打開的方法寫下來,我找了好多地方才找到打開的方法,目前有如下兩種種:方法一:點擊 View > Tool Windows > Android Profiler (還可以點擊工具欄的).
- 方法二:
- 直接在工具欄打開: