简体   繁体   English

Android Studio - 无法启动 adb

[英]Android Studio - failed to start adb

I recently started learning android programming using android studio but every time I open the emulator and drag an apk to the emulator it says:我最近开始使用 android studio 学习 android 编程,但每次我打开模拟器并将 apk 拖到模拟器时,它都会说:

failed to start adb - Check settings to verify your chosen adb path is valid无法启动 adb - 检查设置以验证您选择的 adb 路径是否有效

as shown in the link below.如下面的链接所示。

How can I fix this?我怎样才能解决这个问题?

PS: Sorry for my English. PS:对不起我的英语。

android 无法启动 adb 图片

Step1: Goto your Emulator settings第一步:转到您的模拟器设置设置截图

Step2: General -> "Use detected ADB location" option, disable this option and select folder path for adb.exe which is ideally (windows) is c:\users"loginuser"\AppData\Local\Android\sdk\platform-tools\第 2 步:常规 ->“使用检测到的 ADB 位置”选项,禁用此选项和 select adb.exe 的理想文件夹路径(windows)是 c:\users"loginuser"\AppData\Local\Android\sdk\platform-tools \

This option worked for me !!这个选项对我有用!

I got the same error, and for me, it occured because I was trying to install an APK built for ARMv7 on the emulator, which requires an x86 build. 我得到了同样的错误,对我来说,它发生了,因为我试图在模拟器上安装一个为ARMv7构建的APK,这需要一个x86版本。 Does your build process create separate builds as well? 您的构建过程是否也创建了单独的构建? If so, just check if you're installing the APK meant for the correct architecture! 如果是这样,只需检查您是否正在安装适用于正确架构的APK!

Same issue happened with me, I was trying to install my apk on X86 emulator. 同样的问题发生在我身上,我试图在X86模拟器上安装我的apk。 I found two issues - 我发现了两个问题 -

  1. My apk was not completely downloaded and I was trying it to install. 我的apk没有完全下载,我正在尝试安装。
  2. When I resolved my first issue, I tried with terminal/command prompt and found my emulator doesn't have sufficient storage left. 当我解决了我的第一个问题时,我尝试使用终端/命令提示符,发现我的模拟器没有足够的存储空间。

Screenshot of error - 错误的屏幕截图 -

在此输入图像描述

just wipe your android emulator data and you should be fine, worked for me只需擦除您的 android 模拟器数据,您应该没问题,为我工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM