运行adb命令时出现错误3221226356 [英] Error 3221226356 when running adb command

查看:1681
本文介绍了运行adb命令时出现错误3221226356的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Android ADB时开始出现问题。本质上,在Windows 10计算机上,如果我在命令行上运行:

I have started seeing a problem when using the Android ADB. Essentially, on a Windows 10 machine, if I run at the command line:

adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk

然后应用程序运行并报告28(正确),但随后会显示Windows对话框,报告adb.exe已停止工作。

Then the application runs and reports 28 (which is correct), but then Windows dialog box is displayed reporting that adb.exe has stopped working.

运行Appium服务器并尝试连接到仿真器也会引发错误:

Running the Appium server and attempting to connect to the emulator also throws an error:

adb.exe -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk' exited with code 3221226356'; Stderr: ''; Code: '3221226356'

通过执行一定数量的Google搜寻,我认为这两个问题是相关的

By doing a certain amount of Googling, I think that the two problems are related.

一个建议是重新安装旧版本的adb,但是我不知道该怎么做。有人知道吗?

One suggestion made is to re-install an older version of adb, but I can't work out how to do this. Does anyone know?

或者,有人知道导致此问题的原因以及如何解决此问题?这是我的环境:

Alternatively, does anyone know what is causing this problem and how it can be fixed? Here's my environment:

Windows 10 Pro (1809)
Android Studio 3.4.1
Android Debug Bridge version 1.0.41
Version 29.0.0-5611747

我应该补充一点能够运行adb,但是最近,我安装了更新的Android API,并被提示(我认为)更新adb和硬件加速。显然,这可能是相关的,但我无法解决如何撤消更新的问题。

I should add that I used to be able to run adb but very recently, I installed an update Android API and in doing so, I was prompted to (I think) update adb and hardware acceleration. Obviously this may be related, but I can't work out how to back out the update.

推荐答案

我刚刚面对过这个错误并做了一些研究。看来此错误是由与Appium(1.13.0)不兼容的adb.exe版本(29.0.1-5644136)引起的。替换 adb.exe AdbWinApi.dll AdbWinUsbApi.dll 使用先前版本解决了问题。

I've just faced this error and made some research. Looks like this error is caused by incompatible adb.exe version (29.0.1-5644136) with Appium (1.13.0). Replacing adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll with previous version solved the problem.

我在终端 adb版本中调用检查我的adb版本是什么。

I called in terminal adb version to check what's my adb version.

Android Debug Bridge version 1.0.41
Version 29.0.1-5644136

我将其替换为以前的版本,并且可以正常工作!替换后,我有:

I replaced it with the previous version and it worked! After replace I had:

Android Debug Bridge version 1.0.41
Version 28.0.3-5475833

我将此版本上传到了github,以防万一您可以自己尝试

I uploaded this version to github in case You could try it Yourself

https://github.com/sephuxeresh /adb_versions/tree/master/1.0.41/28.0.3-5475833

这篇关于运行adb命令时出现错误3221226356的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆