解决Android studio截屏出错


我的系统是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

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

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

目前的解决办法是:

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM