解决Android studio截屏出错

时间:2014-07-27 10:15:22   收藏:0   阅读:1470

我的系统是w8.1 64,在eclipse上截屏不会出错,到了android studio上结果出错了

输出:

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

bubuko.com,布布扣

谷歌之,这是一个已知的错误:

“It will be fix on next patch please wait till that..”

目前的解决办法是:

打开:plugins/android/lib/device-art-resources/device-art.xml
注释掉33行到43行的内容
就是:
在33行插入<!-- 在43行插入 -->
然后就可以愉快的截屏啦
bubuko.com,布布扣

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!