简体   繁体   English

屏幕记录在Android棉花糖中不起作用

[英]Screenrecord not working in Android Marshmallow

Just upgraded the Nexus 5 device from Android Lollipop to Marshmallow. 刚刚将Nexus 5设备从Android Lollipop升级到了棉花糖。 I am trying to record application navigation using recording feature of Android Studio as well as using command line adb shell command. 我正在尝试使用Android Studio的录制功能以及命令行adb shell命令来录制应用程序导航。

Both ways are showing error that file(video file that needs to be created) is not accessible or readonly. 两种方式都显示错误,指出文件(需要创建的视频文件)不可访问或只读。

I am unable to record anything. 我无法录制任何东西。 Error occurs as soon as I click RECORD or press enter to start recording. 单击“记录”或按Enter键开始记录后,就会发生错误。

Is there any option in 6.0 that I need to enable? 我需要在6.0中启用任何选项吗?

Command line : 命令行 :

Abhinavs-MacBook-Pro:platform-tools abhinavtyagi$ ./adb shell screenrecord /test.mp4
Unable to open '/test.mp4': Read-only file system

Android Studio : Android Studio: 在此处输入图片说明

不要尝试将录制文件放在根目录中-将其放在可写文件系统中的某个位置

adb shell screenrecord /sdcard/demo.mp4

You should use Android Studio, open Android Monitor from the bottom bar and select the Video icon. 您应该使用Android Studio,从底部的栏中打开“ Android监视器”,然后选择“视频”图标。 You can change parameters such as screen size or rate. 您可以更改屏幕尺寸或速率等参数。 When you stop recording you are asked to save it on your computer. 当您停止录制时,系统会要求您将其保存在计算机上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM