解决Android studio截屏出错

mac2022-06-30  23

我的系统是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行插入 --> 然后就可以愉快的截屏啦

 

转载于:https://www.cnblogs.com/JinyaoLi/p/3870601.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)