【windows】win10提示‘adb‘ 不是内部或外部命令,也不是可运行的程序或批处理文件。

embedded/2024/10/20 3:47:55/

问题日志

adb devices
'adb' 不是内部或外部命令,也不是可运行的程序或批处理文件

解决方案

下载adb,将adb放到如下目录

adb.exe

AdbWinApi.dll

AdbWinUsbApi.dll

文件放到以下目录
C:\Windows\SysWOW64
C:\Windows\System32

测试验证

adb
Android Debug Bridge version 1.0.40
Version 4797878
Installed as C:\Windows\system32\adb.exeglobal options:-a         listen on all network interfaces, not just localhost-d         use USB device (error if multiple devices connected)-e         use TCP/IP device (error if multiple TCP/IP devices available)-s SERIAL  use device with given serial (overrides $ANDROID_SERIAL)-t ID      use device with given transport id-H         name of adb server host [default=localhost]-P         port of adb server [default=5037]-L SOCKET  listen on given socket for adb server [default=tcp:localhost:5037]general commands:devices [-l]             list connected devices (-l for long output)help                     show this help messageversion                  show version numnetworking:connect HOST[:PORT]      connect to a device via TCP/IP [default port=5555]disconnect [HOST[:PORT]]disconnect from given TCP/IP device [default port=5555], or allforward --list           list all forward socket connectionsforward [--no-rebind] LOCAL REMOTEforward socket connection using:tcp:<port> (<local> may be "tcp:0" to pick any open port)localabstract:<unix domain socket name>localreserved:<unix domain socket name>localfilesystem:<unix domain socket name>dev:<character device name>jdwp:<process pid> (remote only)forward --remove LOCAL   remove specific forward socket connectionforward --remove-all     remove all forward socket connectionsppp TTY [PARAMETER...]   run PPP over USBreverse --list           list all reverse socket connections from devicereverse [--no-rebind] REMOTE LOCALreverse socket connection using:tcp:<port> (<remote> may be "tcp:0" to pick any open port)localabstract:<unix domain socket name>localreserved:<unix domain socket name>localfilesystem:<unix domain socket name>reverse --remove REMOTE  remove specific reverse socket connectionreverse --remove-all     remove all reverse socket connections from devicefile transfer:push [--sync] LOCAL... REMOTEcopy local files/directories to device--sync: only push files that are newer on the host than the devicepull [-a] REMOTE... LOCALcopy files/dirs from device-a: preserve file timestamp and modesync [all|data|odm|oem|product|system|vendor]sync a local build from $ANDROID_PRODUCT_OUT to the device (default all)-l: list but don't copyshell:shell [-e ESCAPE] [-n] [-Tt] [-x] [COMMAND...]run remote shell command (interactive shell if no command given)-e: choose escape character, or "none"; default '~'-n: don't read from stdin-T: disable PTY allocation-t: force PTY allocation-x: disable remote exit codes and stdout/stderr separationemu COMMAND              run emulator console commandapp installation:install [-lrtsdg] [--instant] PACKAGEinstall-multiple [-lrtsdpg] [--instant] PACKAGE...push package(s) to the device and install them-l: forward lock application-r: replace existing application-t: allow test packages-s: install application on sdcard-d: allow version code downgrade (debuggable packages only)-p: partial application install (install-multiple only)-g: grant all runtime permissions--instant: cause the app to be installed as an ephemeral install appuninstall [-k] PACKAGEremove this app package from the device'-k': keep the data and cache directoriesbackup/restore:to show usage run "adb shell bu help"debugging:bugreport [PATH]write bugreport to given PATH [default=bugreport.zip];if PATH is a directory, the bug report is saved in that directory.devices that don't support zipped bug reports output to stdout.jdwp                     list pids of processes hosting a JDWP transportlogcat                   show device log (logcat --help for more)security:disable-verity           disable dm-verity checking on userdebug buildsenable-verity            re-enable dm-verity checking on userdebug buildskeygen FILEgenerate adb public/private key; private key stored in FILE,public key stored in FILE.pub (existing files overwritten)scripting:wait-for[-TRANSPORT]-STATEwait for device to be in the given stateState: device, recovery, sideload, or bootloaderTransport: usb, local, or any [default=any]get-state                print offline | bootloader | deviceget-serialno             print <serial-number>get-devpath              print <device-path>remount                  remount partitions read-writereboot [bootloader|recovery|sideload|sideload-auto-reboot]reboot the device; defaults to booting system image butsupports bootloader and recovery too. sideload rebootsinto recovery and automatically starts sideload mode,sideload-auto-reboot is the same but reboots after sideloading.sideload OTAPACKAGE      sideload the given full OTA packageroot                     restart adbd with root permissionsunroot                   restart adbd without root permissionsusb                      restart adb server listening on USBtcpip PORT               restart adb server listening on TCP on PORTinternal debugging:start-server             ensure that there is a server runningkill-server              kill the server if it is runningreconnect                kick connection from host side to force reconnectreconnect device         kick connection from device side to force reconnectreconnect offline        reset offline/unauthorized devices to force reconnectenvironment variables:$ADB_TRACEcomma-separated list of debug info to log:all,adb,sockets,packets,rwx,usb,sync,sysdeps,transport,jdwp$ADB_VENDOR_KEYS         colon-separated list of keys (files or directories)$ANDROID_SERIAL          serial number to connect to (see -s)$ANDROID_LOG_TAGS        tags to be used by logcat (see logcat --help)


 


http://www.ppmy.cn/embedded/128890.html

相关文章

【Unity新闻】Unity 6 正式版发布

Unity CEO Matt Bromberg 在今天自豪地宣布&#xff0c;Unity 6 正式发布&#xff01;作为迄今为止最强大和稳定的版本&#xff0c;Unity 6 为游戏和应用开发者提供了大量的新功能和工具&#xff0c;帮助他们加速开发并提升性能。 本次正式版是6.0000.0.23f1&#xff08;LTS&a…

Python画笔案例-083 绘制 3D世界坐标轴

1、绘制 3D世界坐标轴 通过 python 的turtle 库绘制 3D世界坐标轴,如下图: 2、实现代码 绘制 3D世界坐标轴,以下为实现代码: """3D世界坐标轴.py3D世界的每一个点,最终都是在屏幕显示出来,而屏幕是2D的。所以这个3D点就需要转换成2D坐标点。 ""…

从0开始学Python-day8

Python函数 1. 定义一个函数 可以重复执行、可以重复调用的语句块 用于封装语句块, 提高代码的重用性。 函数是面向过程编程的最小单位 1.1 定义函数&#xff1a;def 语句 语法 def 函数名(形式参数列表):语句块 说明 函数名是一个变量&#xff0c;不要轻易对其赋值 函数有…

Redis学习笔记:字典

概述 字典&#xff0c;又称为符号表&#xff08;symbol table&#xff09;、关联数组&#xff08;associative array&#xff09;或映射&#xff08;map&#xff09;&#xff0c;是一种用于保存键值对&#xff08;key-value pair&#xff09;的抽象数据结构。字典在Redis中的应…

Go 项目如何集成类似mybatisPlus插件呢?GORM走起!!

导读&#xff1a; 在 Go 项目中&#xff0c;虽然没有像 MyBatis Plus 这样特定的 ORM 插件&#xff0c;但可以使用功能相似的 Go ORM 框架&#xff0c;比如 GORM&#xff0c;它支持链式查询、自动迁移、预加载等功能&#xff0c;与 MyBatis Plus 有相似之处。通过一些插件或扩…

英飞达医学影像系统 WebUserLogin.asmx 未授权信息泄露漏洞复现

0x01 产品描述&#xff1a; ‌ 英飞达医学影像存档与通信系统&#xff08;PACS&#xff09;‌是一种应用于医院影像科室的系统&#xff0c;主要任务是将日常产生的各种医学影像&#xff08;包括核磁、CT、超声、X光机等设备产生的图像&#xff09;通过不同接口以数字化的…

利用行列式法求解二元线性方程组

文章目录 一、二元线性方程组二、利用行列式法求解三、案例演示1、二元线性方程组2、求解二元线性方程组3、利用Python求解(1)编写代码,实现功能(2)运行程序,查看结果四、小结一、二元线性方程组 二元线性方程组 { a 11 x 1 + a 12 x 2

Golang笔记_day06

一、GMP 调度器 1、调度器理解思路 理解golang的调度器要从进程到协程演进来说明&#xff1a; 进程--->线程--->协程---> golang的协程&#xff08;goroutine&#xff09; 从上图可以看出&#xff0c;进程到多线程到协程&#xff0c;最终目的就是为了提高CPU的利用率…