qq_15838819 2016-09-13 02:56 采纳率: 0%
浏览 2325
已结题

使用AVD直接运行代码报错

AVD本身的运行没有问题
报错如下

[2016-09-13 10:51:12 - TestApp] ------------------------------
[2016-09-13 10:51:12 - TestApp] Android Launch!
[2016-09-13 10:51:12 - TestApp] adb is running normally.
[2016-09-13 10:51:12 - TestApp] Performing com.cyber.testapp.StartActivity activity launch
[2016-09-13 10:51:12 - TestApp] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2016-09-13 10:51:16 - TestApp] Launching a new emulator with Virtual Device 'AVD_for_Nexus_7_2012_by_Google'
[2016-09-13 10:51:20 - Emulator] emulator: WARNING: VM heap size set below hardware specified minimum of 96MB
[2016-09-13 10:51:20 - Emulator] emulator: WARNING: Setting VM heap size to 256MB
[2016-09-13 10:51:20 - Emulator] Hax is enabled
[2016-09-13 10:51:20 - Emulator] Hax ram_size 0x40000000
[2016-09-13 10:51:20 - Emulator] HAX is not working and emulator runs in emulation mode.
[2016-09-13 10:51:20 - Emulator] The memory needed by this VM exceeds the driver limit.
[2016-09-13 10:51:20 - Emulator] qemu-system-x86_64.exe: -drive if=none,index=1,id=cache,file=C:\Users\LDY.android\avd\AVD_for_Nexus_7_2012_by_Google.avd/cache.img: could not open disk image C:\Users\LDY.android\avd\AVD_for_Nexus_7_2012_by_Google.avd/cache.img: Could not open 'C:\Users\LDY.android\avd\AVD_for_Nexus_7_2012_by_Google.avd/cache.img': Invalid argument

  • 写回答

2条回答 默认 最新

  • 寻水鱼 2016-09-13 05:41
    关注

    gradle里配置dexOptions{javaMaxHeapSize = "..."}比如2048MB
    而且你的AVD是_Nexus_7,安卓7.0了吧,你gradle里配置的sdk版本可能不匹配(这点仅是猜测)~祝解决问题

    评论

报告相同问题?

悬赏问题

  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作