您的位置:首页 > 移动开发 > Android开发

No compatible targets were found....

2010-12-22 15:56 281 查看
android 配置完成后写写一个hello world程序的时候系统提示"No compatible targets were found. Do you wish to add new Android Virtual Device?"

打开cmd 找到我的android-sdk-windows-1.5_r3的tools路径。我的在F:android-sdk-windows-1.5_r3 ools下。
然后在这个路径下输入android create avd –t 2 –n Android123    然后回车就行。(基本上执行这个就可以了)
相关说明:Action "create avd":
  Creates a new Android Virtual Device.
Options:
  -t --target   Target id of the new AVD [required]
  -c --sdcard   Path to a shared SD card image, or size of a new sdcard for the
new AVD
  -p --path     Location path of the directory where the new AVD will be created

  -n --name     Name of the new AVD [required]
  -f --force    Force creation (override an existing AVD)
  -s --skin     Skin of the new AVD

所以  -t  后面我们用了 2  版本1.5的ID 就是2。 -n后面的是名字可以随便起

[attach]39[/attach]

[attach]40[/attach]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐