adb.exe - System Error: The code execution cannot proceed because AdbWinApi.dll was not found.
解决方法:到SDK的platform-tools和tools中,找AdbWinApi.dll,copy到windows/system32。
-
'findstr' is not recognized as an internal or external command的问题
解决步骤:
- go to C:\Windows\system32\ and copy findstr.exe file.
- paste this file into the location C:\adb
- Run the .bat file again
-
python写的.bat缺少常见模块
c:\adb
λ C:\crc32Check.py
Traceback (most recent call last):
File "C:\Elsa\Cust\XiaoMi\N2\FW\CRC\crc32Check\crc32Check.py", line 12, in <module>
import numpy as np
ModuleNotFoundError: No module named 'numpy'
c:\adb
λ pip install numpy
Collecting numpy
Downloading numpy-1.24.2-cp311-cp311-win_amd64.whl (14.8 MB)
---------------------------------------- 14.8/14.8 MB 1.2 MB/s eta 0:00:00
Installing collected packages: numpy
Successfully installed numpy-1.24.2
[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: C:\Users\Dell\AppData\Local\Programs\Python\Python311\python.exe -m pip install --upgrade pip
再次运行crc32Check.py,问题解决。