Still no compatible avds with target 'Google APIs'

Source: Internet
Author: User

When compiling a program with a new version of Android, an error message is displayed: Still no compatible avds with target 'Google APIs'

AVD is an android virtual device. It is a virtual device of the Android platform. When you start to compile an android program, you must have a matching virtual device to present the android running interface.

To create an AVD, first open the command line tool CMD and enter the android SDK tools directory. Enter the following command:

 

[Java]View
Plaincopy

  1. Android list targets

 

The output results will display the currently available AVD device IDS (the actual output results are related to your environment ):

 

[Java]View
Plaincopy

  1. ID: 1
  2. Name: IOS 1.1
  3. Type: Platform
  4. API level: 2
  5. Skins: hvga (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
  6. ID: 2
  7. Name: IOS 1.5
  8. Type: Platform
  9. API level: 3
  10. Skins: hvga (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P

 

Run the following command to create a virtual device:

[Java]View
Plaincopy

  1. Android create AVD -- name <your_avd_name> -- target <targetid>
  2. For example:
  3. Android create AVD -- name my_avd -- Target 2

 

Compile the program again to run the program.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.