How to record screen with Android Studio

2019-03-08 22:31发布

I connect my phone to Android Studio and code. I want to record my phone screen. I saw this but that button is disabled in my Android Studio. I can capture screens but can't record. Can someone help me with this?

UPDATE

enter image description here

This is how it is there in my Android studio. The button is disabled

9条回答
Anthone
2楼-- · 2019-03-08 23:10

Android SDK Emulators don't support recording: https://code.google.com/p/android/issues/detail?id=61682

The screenrecord command is simply missing:

i:\>adb -e shell
root@generic_x86_64:/ # screenrecord
/system/bin/sh: screenrecord: not found
127|root@generic_x86_64:/ #

On Windows I suggest using the Fraps generic screen capture tool as an alternative. It's an awesome tool with too many years of history to count. I'm not affiliated with them, I just used it "back in the day" when I was gaming a lot. On the Movies tab add a Video Capture Hotkey and use that to start/stop the recording. The FPS counter will be red while recording.

查看更多
虎瘦雄心在
3楼-- · 2019-03-08 23:12

Maybe you should just change a phone,like this:

When using HUAWEI,the screen record is disabled:

Image1

But when changing to Nubia, it works!

Image2

查看更多
Evening l夕情丶
4楼-- · 2019-03-08 23:15

Now you can also record video from Android emulator to follow below option:

  • Select more more option option
  • Then select Record screen record screen option.

Check below screenshot:

Record android emulator screen

查看更多
孤傲高冷的网名
5楼-- · 2019-03-08 23:20

In newer versions of Android Studio it requires an external Android phone to record screen from preferably with a resolution of at least 720p. Since the internal runs on the virtual memory it can't be recorded and is therefore disabled as it can't both record and run emulator at same time. I'm running Android Studio 2.3.2 which is the latest and the one I experienced this on. But when I closed the emulator and connected my HTC One M9 it automatically enabled recording button to record the phone instead of the emulated device.
Check the images below and the difference between them in the red circles:

First image, emulated device on the computer: Emulated device not able to make a screen recording

Second image, personal device connected to computer: Personal device connected and ready to be recorded from Android Studio

查看更多
你好瞎i
6楼-- · 2019-03-08 23:23

Open Android emilator, Click to right sidebar more button "..." Open new window, Record Screen and start record It's OK https://developer.android.com/studio/run/emulator.html

查看更多
萌系小妹纸
7楼-- · 2019-03-08 23:24

Maybe your device does not support the screen recorder, there are many devices which does not support screen recorder thus this is device issue. If you want to record your app screen then simply run the app on android emulator or on genymotion and start your desktop screen recorder and adjust the desktop screen to fit emulator. There are many screen recorder for PC but i prefer cam studio 8. Thanks

查看更多
登录 后发表回答