【问题标题】:AVD fails to boot on Mac "permission denied(13)"AVD 无法在 Mac 上启动“权限被拒绝 (13)”
【发布时间】:2016-12-15 17:06:38
【问题描述】:

只需尝试启动我的 android 模拟器即可。但是,我不断收到消息错误:调整分区大小失败,退出代码为 1。我已完全卸载 Androidstudio 并重新安装,但没有任何改变,仍然出现相同的错误。我还在 AVD 设置中同时使用了硬件 - GLES 2.0 和软件 - GLES 2.0 图形设置,但两者都出现错误。

我使用的是 MacBook Pro。

这是运行错误以及 logCat 捕获的错误。

ERROR: resizing partition failed with exit code 1

这是使用硬件时的错误 - GLES 2.0

 08-09 14:21:07.461 1184-1184/? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
    08-09 14:21:07.652 1184-1184/? E/SurfaceFlinger: hwcomposer module not found
    08-09 14:21:07.675 1184-1184/? E/cutils-trace: Error opening trace file: Permission denied (13)
    08-09 14:21:08.169 1184-1241/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
    08-09 14:21:08.700 1251-1254/? E/libEGL: load_driver(/system/lib/egl/libGLES_emulation.so): dlopen failed: library "/system/lib/egl/libGLES_emulation.so" not found
    08-09 14:21:08.755 1251-1254/? E/cutils-trace: Error opening trace file: Permission denied (13)

这是更改软件时的错误 - GLES 2.0

08-09 16:07:50.886 1184-1184/? E/SurfaceFlinger: hwcomposer module not found
08-09 16:07:50.950 1184-1184/? E/cutils-trace: Error opening trace file: Permission denied (13)
08-09 16:07:51.226 1184-1243/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
08-09 16:07:51.890 1252-1254/? E/cutils-trace: Error opening trace file: Permission denied (13)
01-01 00:00:00.000 0-0/? E/Internal: Connection refused

【问题讨论】:

  • 可能是您的 GPU 有问题,请检查您是否有最新的图形驱动程序,如果这不起作用,请转到您的 AVD 设置并禁用“使用主机 GPU”
  • “使用主机GPU”在哪里? AVD 设置中图形部分的唯一部分允许我选择硬件 - GLES 2.0 或软件 - GLES 2.0。
  • 他们可能改了名字,试试把它设置成软件
  • 改成软件时仍然报ERROR: Resizing partition failed exit code 1。但是logCat中出现了不同的错误:08-09 15:59:31.150 1186-1186/? E/SurfaceFlinger: hwcomposer module not found 08-09 15:59:31.186 1186-1186/? E/cutils-trace: Error opening trace file: Permission denied (13) 08-09 15:59:31.373 1186-1240/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property 08-09 15:59:31.721 1249-1251/? E/cutils-trace: Error opening trace file: Permission denied (13)
  • 模拟器屏幕上发生了什么,就像它只是卡在启动图像上?

标签: android android-studio android-emulator


【解决方案1】:

您的 avd 设置中的 GPU 设置..可能..是否选中了 USE host GPU 框?

【讨论】:

  • 设置中没有使用主机GPU框,在使用硬件或软件图形的选项上。两者都不起作用
  • 在您尝试启动的模拟器图像的 avd 编辑设置中。相信我
猜你喜欢
  • 2019-05-11
  • 1970-01-01
  • 2015-10-02
  • 2014-10-19
  • 2016-08-03
  • 2014-03-24
  • 2017-11-03
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多