Android Studio 0.8 Beta屏幕捕获/视频捕获已损坏

前端之家收集整理的这篇文章主要介绍了Android Studio 0.8 Beta屏幕捕获/视频捕获已损坏前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我昨晚将 Android Studio从0.6.2升级到了0.8 beta,没有任何问题.

不幸的是,我只是试图从Glass获取视频捕获(我一直在以这种方式发送定期进度更新)以发现它不再起作用.按下记录会跳过实际录制过程并直接跳到保存对话框,保存没有内容的视频文件.

屏幕捕获按钮显示错误

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

可能导致此问题或如何解决问题的任何想法?

解决方法

这是一个已知问题,并已修复为0.8.2;但是,有一个解决此版本的解决方法.

If anyone needs a workaround: edit the following file in your Android
Studio distribution:
plugins/android/lib/device-art-resources/device-art.xml

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

In other words,comment out the two tv device definitions. They don’t
supply a portrait orientation,which is what is causing the crash in
the screenshot code (when it searches for device art to surround the
device with).

If you do this,note that you may get conflicts in a future update,so
please copy the original file somewhere and restore it before updating
to 0.8.2.

Tnor发表于https://code.google.com/p/android/issues/detail?id=72580.

原文链接:https://www.f2er.com/android/316668.html

猜你在找的Android相关文章