android emulator :Configuring Graphics Acceleration(fix no config match)

Configuring Graphics Acceleration

Caution: As of SDK Tools Revision 17, the graphics acceleration feature for the emulator is experimental; be alert for incompatibilities and errors when using this feature.

Graphics acceleration for the emulator takes advantage of your development computer's graphics hardware, specifically its graphics processing unit (GPU), to make screen drawing faster. To use the graphics acceleration feature, you must have the following versions of the Android development tools installed:

  • Android SDK Tools, Revision 17 or higher
  • Android SDK Platform API 15, Revision 3 or higher

Use the Android SDK Manager to install these components:

Note: Not all applications are compatible with graphics hardware acceleration. In particular, the Browser application and applications using theWebView component are not compatible with graphics acceleration.

To configure an AVD to use graphics acceleration:

  1. Make sure you have the required SDK components installed (listed above).
  2. Start the AVD Manager and create a new AVD with the Target value ofAndroid 4.0.3 (API Level 15), revision 3 or higher.
  3. If you want to have graphics acceleration enabled by default for this AVD, in theHardware section, clickNew, select GPU emulation and set the value toYes.  

    Note: You can also enable graphics acceleration when you start an emulator using command line options as describe in the next section.

  4. Name the AVD instance and select any other configuration options.  

    Caution: Do not select the Snapshot: Enabled option. Snapshots are not supported for emulators with graphics acceleration enabled.

  5. Click Create AVD to save the emulator configuration.

If you set GPU emulation to Yes for your AVD, then graphics acceleration is automatically enabled when you run it. If you did not enableGPU emulation when you created the AVD, you can still enable it at runtime.

To enable graphics acceleration at runtime for an AVD:

  • If you are running the emulator from the command line, just include the -gpu on option:
    emulator -avd <avd_name> -gpu on

    Note: You must specify an AVD configuration that uses Android 4.0.3 (API Level 15, revision 3) or higher system image target. Graphics acceleration is not available for earlier system images.

  • If you are running the emulator from Eclipse, run your Android application using an AVD with the-gpu on option enabled:    
    1. In Eclipse, click your Android project folder and then select Run > Run Configurations...
    2. In the left panel of the Run Configurations dialog, select your Android project run configuration or create a new configuration.
    3. Click the Target tab.
    4. Select the AVD you created in the previous procedure.
    5. In the Additional Emulator Command Line Options field, enter:
      -gpu on
    6. Run your Android project using this run configuration.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值