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

    技术2025-04-30  25

    花了一整天时间终于把开发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)