我在此处遵循说明来构建一个开源Android项目(AOSP-2.3.X)。在我完成了以下内容的构建之后:
. build/envsetup.sh
lunch aosp_arm-eng
make -j16
emulator
我可以看到黑屏模拟器和两条警告消息:
Could not automatically detect an ADB binary.
Some emulator functionality will not work until a custom path to ADB
is added in the extended settings page.
Running an x86 based Android Virtual Device (AVD) is 10x faster.
We strongly recommend creating a new AVD.
在我的终端中显示:
emulator: WARNING: system partition size adjusted to match image file (2050 MB > 200 MB)
emulator: WARNING: encryption is off
当我运行adb devices
时,它显示:
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
emulator-5554 offline
模拟器在Anroid Studio中起作用,但在我尝试构建开源Android Project时终端不工作,是否有有关如何解决此问题的建议?
我遇到了这样的问题,请尝试卸载Android电话驱动程序(在删除驱动程序上检查并重新启动PC),然后继续搜索"通用ADB驱动程序",下载并设置它,为我工作,也希望你!
ps c: users nguyen appdata local android sdk sdk platform-tools> adb设备附加设备列表xxxxxxxxxxxxxxxxxxx设备