解決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