Android Studio 0.8 Beta Screen Capture / Video Capture is broken

I updated Android Studio from 0.6 to 0.8 beta yesterday, no problem.

Unfortunately, I just tried to capture a video from Glass (I regularly sent progress updates) to find that it no longer works. Clicking a recording skips the actual recording process and goes directly to the save dialog, saving the video file without content.

The screen capture button shows an error:

Unexpected error while obtaining screenshot: java.lang.IllegalStateException: @NotNull method com/android/tools/idea/ddms/screenshot/DeviceArtDescriptor.getArtDescriptor must not return null 

Any ideas that might be causing this and how to fix it?

+7
android android-studio adb
source share
2 answers

This is a known issue, and it is fixed for 0.8.2; however, there is a problem with this version to fix it.

Decision

If someone needs a workaround: edit the following file on your Android device Studio distribution: plugins / Android / Library / device-art resources / devices art.xml

On line 33, insert <!-- and on line 43, insert -->

In other words, comment out two device definitions. They do not put the portrait orientation, which is the reason for the screenshot code (when he searches for the art of the device to surround the device with).

If you do this, note that conflicts may arise in a future update, so copy the source file somewhere and restore it before upgrading to 0.8.2.

Submitted by Tnor, at https://code.google.com/p/android/issues/detail?id=72580 .

+16
source share

It turns out that it was my own mistake - I started the emulator, which I forgot about, which meant that adb did not know which device I wanted to record.

The trick is to make sure that only one device is connected to adb or the default value is set.

-3
source share

All Articles