我昨晚将
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.xmlOn 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.