简体   繁体   English

Android模拟器无法用于开源项目(黑屏和离线)

[英]Android emulator not working(black screen and offline) for open source project

I followed instructions here to build an open source android project(aosp-2.3.x). 我按照此处的说明构建了一个开源android项目(aosp-2.3.x)。 After I finish building the project with: 完成以下项目的构建后:

. build/envsetup.sh
lunch aosp_arm-eng
make -j16
emulator

I can see a black screen emulator and two warning messages: 我可以看到黑屏模拟器和两个警告消息:

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.

and in my terminal it shows: 在我的终端上显示:

 emulator: WARNING: system partition size adjusted to match image file (2050 MB > 200 MB)

emulator: WARNING: encryption is off

when I run adb devices , it shows: 当我运行adb devices ,它显示:

List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
emulator-5554   offline

The emulator works in Anroid Studio, but not from the terminal when I tried to build the open source android project, is there any suggestions on how to fix this issue? 该模拟器可在Anroid Studio中运行,但在尝试构建开源android项目时无法从终端运行,是否有解决此问题的建议?

I got the same problem like this, try to uninstall android phone driver (check on remove driver and restart pc) then go on search "universal adb driver", download and setup it, it works for me, hope for you too! 我遇到了同样的问题,尝试卸载android手机驱动程序(检查删除驱动程序并重新启动pc),然后继续搜索“通用adb驱动程序”,下载并设置它,它对我有用,对您也希望!

PS C:\\Users\\Nguyen\\AppData\\Local\\Android\\sdk\\platform-tools> adb devices List of devices attached xxxxxxxxxxxxxxxxxx device PS C:\\ Users \\ Nguyen \\ AppData \\ Local \\ Android \\ sdk \\ platform-tools> adb设备连接的设备列表xxxxxxxxxxxxxxxxxx设备

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

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