我花了很长时间来计算如何在Mac上设置adb,所以我想写一下如何设置它可能对某些人有用.adb是在手机/模拟器上安装和运行Android应用程序的命令行工具
我正在尝试使用AVD Manager运行Android模拟器.这是我的avd:http://image-upload.de/image/fnx79V/52b0d050ee.png
这就是开始时发生的事情:
http://image-upload.de/image/vGpQfa/e912d83939.png
我有一个Macbook Pro Retina.直接从intel页面安装Haxm驱动程序.
没有模拟器正在工作.所有人都得到相同的"错误"消息.
运行命令(这个错误是当我使用Homebrew安装Android-sdk和Android平台工具时|任何遇到同样问题的人应该删除它或查看冲突的位置)
export ANDROID_EMULATOR_DEBUG=1 test20
emulator:Found AVD name 'test20'
emulator:Found AVD target architecture: x86
emulator:Looking for emulator-x86 to emulate 'x86' CPU
emulator:Probing program: ./emulator-x86
emulator:Probing path for: emulator-x86
emulator:Found target-specific emulator binary: /usr/local/bin/emulator-x86
emulator:Probing for: /usr/local/bin/libOpenglRender.dylib
emulator:Probing for: /usr/local/bin/lib/libOpenglRender.dylib
emulator:Probing for: /usr/local/lib/libOpenglRender.dylib
emulator:Probing for: /usr/local/bin/lib64OpenglRender.dylib
emulator:Probing for: /usr/local/bin/lib/lib64OpenglRender.dylib
emulator:Probing for: /usr/local/lib/lib64OpenglRender.dylib
emulator:Could not find OpenGLES emulation host libraries!
emulator: ERROR: This AVD's configuration is missing a kernel file!!
emulator -avd test21 …Run Code Online (Sandbox Code Playgroud)