Android开发初体验之No compatible targets were found....

花了一整天时间终于把开发Android应用的环境装好了,挺悲剧的,原谅我从来没实际接触过java。

写了一个世界上最伟大的程序“hello world”。

Run as Android Application时系统提示"No compatible targets were found. Do you wish to add new Android Virtual Device?"
Google了一下,解决方法如下:
打开“我的电脑”找到android-sdk的tools路径。我的在D:/android-sdk/tools下。
然后开始-cmd进入这个路径下输入android create avd –t 2 –n Android123    然后回车就行。(基本上执行这个就可以了)

-------

-------

 

Created AVD 。。。。。

到这里就OK了

 


相关说明:

   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

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 6
    评论
当出现"make: *** No targets specified and no makefile found. Stop."这样的错误提示时,通常是因为make命令找不到Makefile文件。Makefile文件是用来告诉make命令如何编译和链接程序的配置文件。解决这个问题的方法有两种。 第一种方法是检查当前目录下是否存在Makefile文件。如果不存在,可以尝试在当前目录下执行"./configure"命令,这个命令会生成Makefile文件。生成Makefile文件后,再执行"make"命令即可正常运行。这种方法适用于源码安装的情况。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [make 命令出现:"make:*** No targets specified and no makefile found.Stop.](https://blog.csdn.net/shun35/article/details/94576800)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *2* [make: *** No targets specified and no makefile found. Stop.错误解决办法](https://blog.csdn.net/weiyangdong/article/details/79203712)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值