The following problems occurred when using pycharm to connect ADB:
The following statements are used:
import os os.system('adb version')
After converting the character set to GBK:
reason:
The computer could not find adb.exe and could not start ADB.
Solution: configure the ADB driver path to the environment variable path.
Running ADB in CMD succeeded:
Restart the computer
Successful operation in pychar:
Read More:
- How to solve the problem of string to CString garbled code?
- Solve the problem of Chinese garbled code of actibpm plug-in in idea
- Python – [encoding] in Python os.system Solution to Chinese garbled code when calling CMD command
- Solution to garbled code problem after importing project in eclipse
- How to solve the problem of “08001” when JDBC connects to MySQL
- Add Druid driver to datagrip to solve Oracle garbled code
- Configuration (9) to solve the problem of “setup tools PIP wheel failed with error code 1”, create virtual environments with Python of anaconda
- Solve xshell garbled code
- Solving the problem of Chinese garbled code in qtring
- Solve the problem of Tomcat console and HTML garbled
- Solve the problem that the connection between ADB and nocturnal God cannot be solved
- Solve the problem of unable to locate package python3.6 when upgrading from python3.5 to python3.6 in ubantu16.04
- Solve the problem of using logback console to print log Chinese characters in IDEA as garbled characters
- Install Android SDK — stopping ADB server failed (code – 1)
- Solve the error of ora-12514 when Navicat connects to Oracle Database
- Solve the problem of prompt couldn’t find path to unrear library after installing unrear in Python
- Stopping ADB server failed(code -1)
- Vs_ Code remote SFTP connects to the server to modify the nginx configuration information and reports all configured authentication methods failed
- In the XML configuration file of spring jdbc.properties The connection to the database failed due to garbled code
- Solution of MySQL data garbled problem