As shown in the following figure: uiautomatorviewer displays blank
Cause: the problem of java version is too new
➜ sdk ls /Library/Java/JavaVirtualMachines/
jdk1.8.0_161.jdk zulu-17.jdk
Solution: downgrade
The Java version can be downgraded to before 201 or before 51. (the blogger’s 161 failed, which may also be the reason for the M1 chip)
uiautomatorviewer is actually a Java startup script. For example, you can use this command on the Mac to see the real startup command.
bash -x /Users/zhoujing/Library/Android/sdk/tools/bin/uiautomatorviewer
In order to ensure that the uiautomatorviewer can run correctly locally, several jdks can be standby
Link to download old java version: SDK
References:
1. Error reporting after uiautomatorviewer is opened under MAC
2. Learning experience of MAC Android automatic test
Read More:
- When a system is deployed on weblogic12.2.1.3, it reports an error “IllegalStateException zip file closed”. When it is deployed on weblogic12.2.1.2, it does not report an error and can be accessed normally.
- When Dbeaver starts on Mac, it reports an error: “fail to create java virtual machine”
- “ XX.app ”It is damaged and cannot be opened. You should move it to the wastebasket.
- Remove M Characters “Control M” or “^M” or “CTRL M” Characters in a UNIX file
- [OpenGL · error] visual studio 2019 reports an error. It is an external symbol gladloadglloader that cannot be parsed. This symbol is referenced in the function main
- After matlab2018a is successfully installed, a licensing error appears when it is opened: – 8523
- Ant Design ‘cross env’ is not an internal or external command, nor is it an error reporting problem for a runnable program
- After Vue is packaged, a blank page appears, an error is reported in the resource request, and there is no error handling scheme
- Exception record. When eclipse starts, an error is reported when workspace is opened
- When docker starts tomcat, the access port of the container displays 404, and the source server fails to find the representation of the target resource or is unwilling to disclose an existing one
- Vue introduction path is correct, but it always reports an error: already included file name‘ ××ב differs from file name ‘ ××ב only in casing.
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- In chome browser, console reports an error but does not display it
- Mac bigsur cannot create other directory solutions in the root directory (M1 chip is also applicable)
- Mac compiles Doris with MVN and reports an error checkstyle
- Mac reports an error zsh: fork failed: resource temporarily unavailable (reasons and solutions)
- Solve the problem that M1 Mac can’t debug when using GoLand
- Mac computer logs into docker and reports an error
- When the mybatis field contains an expression, an error is reported when it is stored in the database
- Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space