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.

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...