获取屏幕截图时出现意外错误-java.lang.nullpointerexception [英] Getting Unexpected Error while obtaining screenshot - java.lang.nullpointerexception
问题描述
在Android Studio 2.0中捕获屏幕截图时出现以下错误.我尝试使用2种不同的平板电脑,但都遇到了这个错误.
I am getting below error while capturing screenshot in Android Studio 2.0. I tried with 2 different tablets and with both of them I am getting this error.
Unexpected Error while obtaining screenshot - java.lang.Nullpointerexception
我已经搜索了Google,还查看了不同的stackoverflow问题,但是没有找到可以解决此问题的任何问题.
I have googled and also looked at different stackoverflow questions but didnt found any which can resolve this issue.
我最近安装了Android Studio 2.0,这可能是我不知道的问题.
I have recently installed Android Studio 2.0 and this could be a problem I dont know.
推荐答案
重启Android Studio为我工作.
Restarting the Android Studio worked for me.
重新启动Android Studio后,它没有显示屏幕捕获错误.
It doesn't give the screen capture error after I restarted Android studio.
这篇关于获取屏幕截图时出现意外错误-java.lang.nullpointerexception的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!