最开始安装sdk的 uiautomatorviewer.bat 后无法打开,闪退,无法查看报错信息
解决版本:把 uiautomatorviewer.bat 拖到cmd运行,可以查看报错信息
之后,查看之前安装的jdk版本,比较混乱,且都是32位,重新下载安装64位的jdk,安装完成
明天解决以下问题,查看环境变量配置的影响,解决后的方法记录下来
直接打开 uiautomatorviewer.bat ,可以使用。
再然后,配置了jdk环境变量,uiautomatorviewer.bat又 无法使用了
把环境变量配置删除, uiautomatorviewer.bat 又可以使用了
尝试1:
it will give the correct error, like in my case JAVA_HOME path was Set to old path in registry.
Run regedit
Search JAVA_HOME
Delete the old JAVA_HOME key and value.
log off the machine
run uiautomatorviewer.bat
尝试2:
It is working now. I did set ANDROID_SWT to point to the folder containing swt.jar for my platform. and walla its working now.
参考3:
https://blog.csdn.net/ronaldo4511/article/details/79485833
尝试4:
https://stackoverflow.com/questions/48718161/uiautomatorviewer-swt-exception