Android Studio and android device monitor

后端 未结 5 1503
轮回少年
轮回少年 2021-01-03 01:23

I just switched from Eclipse to Android Studio. For what I saw since now the new IDE has a lot more features than Eclipse, and I like using the new IDE for my app developmen

相关标签:
5条回答
  • 2021-01-03 02:05
    I faced problem in android device monitor . I could not find file explorer menu , device list in android device monitor so i 
    deleted hidden  *.android* folder in the home directory in linux using the  following command:
    
    `$ sudo -r ./android`
    
    After deleting this hidden folder your android device monitor will be set to default state.
    
    0 讨论(0)
  • 2021-01-03 02:13

    Android studio ,Android device monitor opens but you cannot display Logcat or device another functionality,Just go to your android studio tools option tick Enable ADB integration then you can open other ADM screen.This worked for me.

    0 讨论(0)
  • 2021-01-03 02:15

    Actually I found a solution, I don't know if it is the best way (I keep thinking that android studio MUST integrate device monitor in a better way )

    As stated in the question, starting device monitor from the menu tools causes android studio disconnect the device, but if you open the android studio's built in terminal (View > Tool Windows > terminal) and just type "monitor" it starts device monitor without detaching the device from android studio (you will get a warning on device monitor saying that there was a problem attaching the debugger, but don't care about that)

    hope this will help some one

    0 讨论(0)
  • 2021-01-03 02:15

    There are several ways you can find the DDMS tool using android studio. Eclipse is not needed for that as the tool is a separate program that comes with the android SDK.

    • Click on the Android Device Monitor Icon in the toolbar in Android Studioenter image description here
    • Open the monitor.bat file (on a windows machine, this is located in [path-to-sdk]/sdk/tools)
    • Type monitor in the terminal in Android Studio or in any command prompt. (thanks SimonVeloper)
    • Open it via the tools menu. Tools->Android->Android Device Monitor (thanks sebweisgerber)enter image description here

    This will open the DDMS tool and will automatically connect to connected devices.

    Normally you will be able to view your logcat output through this tool and not in android studio anymore. If this doesn't work for you make sure your devices is properly connected and restart the tool.

    0 讨论(0)
  • 2021-01-03 02:17

    To open the Android device monitor simultaneously with Adb, Run the montior through the command prompt instead of visting to the Tools->Android->Android device monitor

    To run via the Command line interface navigate to the :

    Android/Sdk/tools/ and then run the monitor (for linux run -> sudo ./monitor)

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