android FATAL EXCEPTION: GLThread

解决使用Android模拟器运行基于AndEngine的游戏时遇到的GPU模拟器不支持GLES2的问题,包括安装最新SDK、创建虚拟设备等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I heard some of you have tried running their AndEngine game using the emulator. Well this does not work, since the emulator does not initially support GLES2. You normally should get an error like this:

1
2
FATAL EXCEPTION: GLThread 11
java.lang.IllegalArgumentException: No EGLConfig found!

Emulator Tutorial – Setup 01Emulator Tutorial – Setup 02

  1. Make you have the latest SDK installed.
  2. Open the Android Virtual Device Manager (AVD).
    1. Delete your old virtual devices
    2. Add a new virtual device
      1. Click on “New” to add a new hardware property.
      2. Select “GPU emulation”
      3. Enable “GPU emulation”
    3. Now just “Create AVD” and you are ready to go
  3. Run your game in the emulator.

No related posts.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值