How to open Android Device Monitor in latest Android Studio 3.1

前端 未结 15 673
说谎
说谎 2020-12-02 17:59

Recently I updated my android studio, after the update, I am unable to find android device monitor option in the tools section. In the previous update it was there in to

相关标签:
15条回答
  • 2020-12-02 18:27

    To start the standalone Device Monitor application, enter the following on the command line in the android-sdk/tools/ directory:

    monitor
    

    You can then link the tool to a connected device by selecting the device from the Devices pane. If you have trouble viewing panes or windows, select Window > Reset Perspective from the menu bar.

    • Note: Each device can be attached to only one debugger process at a time. So, for example, if you are using Android Studio to debug your app on a device, you need to disconnect the Android Studio debugger from the device before you attach a debugger process from the Android Device Monitor.

    reference : https://developer.android.com/studio/profile/monitor.html

    => You Can change minSdkVersion 16 And open Device File Explorer

    • Device File Explorer work same as a Android Device Monitor

    See Below Image:

    0 讨论(0)
  • 2020-12-02 18:29

    If you want to push or pull your files from devices monitor now android studio offers something better then android monitor. Just take a look at right side of your studio there is an option device file explorer. Open it and you are good to go. Select your device from top dropdown and rest of everything is pretty much the same as it was in android monitor. Below is the screen Shot attached to give you the exact location and idea.

    0 讨论(0)
  • 2020-12-02 18:29

    As said in "Testing the game on your Android device", I followed these three steps

    1. With the game still running on your device, return to your computer.
    2. Navigate to the directory containing the Android SDK Tools.
    3. Navigate to tools and double click the application called monitor.

    This was prompting the following error

    I've also tested using cmd and the same error persisted

    To fix it, I had to go to AndroidSDKTools\tools\lib\monitor-x86_64 and double click in the monitor application

    And then the Android Device Manager just started as normal

    0 讨论(0)
  • 2020-12-02 18:33

    jdk max version is 1.8.0_144

    then run monitor

    0 讨论(0)
  • 2020-12-02 18:34

    You still can run it from File explorer on Windows 10 with the proper path. You just need to go to C:\Users\user\AppData\Local\Android\Sdk\tools\lib\monitor-x86_64 and double click the file monitor.

    If you want to use in the cmd just the 'monitor' command you have to add this folder (in my case with android studio 3.4.1 and win10) to your Environment variables. So, press the start button and then type Edit the system environment variabes click it and System properties window should open. Then go to

    Environment variables => System variables => path

    press the Edit button for path and add the new value

    C:\Users\user\AppData\Local\Android\Sdk\tools\lib\monitor-x86_64

    click 'Ok', 'Ok' and 'Ok' and restart the cmd window if you had it opened and type 'monitor' and it should open the monitor as well.

    Hope it helps!

    PD: This answer was based on this answer https://stackoverflow.com/a/55077068/5360905 from Tiago Martins Peres

    0 讨论(0)
  • 2020-12-02 18:34

    If you're looking for the Hierarchy Viewer tool, it has been changed to Layout Inspector:

    https://developer.android.com/studio/debug/layout-inspector.html

    0 讨论(0)
提交回复
热议问题