eclipse中创建android模拟器时提示“no target selected ”

1,确认是否安装了对应版本的sdk


如这种,就是没有安卓对应的镜像文件,从sdk manager里进去,下载对应的镜像文件


这三个镜像分别是针对三个不同架构的模拟器,显示是未安装。

安卓对应的system image文件。

2,安卓完成之后,重启eclipse,发现还是没有找到相应的镜像文件。

查看android sdk的目录,查看image文件的存放目录。存放的目录为:sdk\system-images\android-16\default

存放的文件有:


分别对应三个架构的镜像。

这时候需要将这三个架构文件拷贝出来,放到sdk\system-images\android-16\目录,和之前的default同级,这样,重启eclipse之后,在重新创建模拟器,就能选择了。

参考链接:http://stackoverflow.com/questions/15886706/no-system-images-installed-for-this-target-even-though-image-is-installed


  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,我可以为您提供一些指导。首先,您需要在Eclipse创建一个Android项目。然后,您可以使用相对布局来创建软件更新提示界面。 下面是一些示例代码,可以帮助您开始: ```xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <ImageView android:id="@+id/update_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_update" android:layout_marginTop="16dp" android:layout_centerHorizontal="true" /> <TextView android:id="@+id/update_title" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="软件更新" android:textSize="24sp" android:textColor="@android:color/black" android:layout_below="@id/update_icon" android:layout_centerHorizontal="true" android:layout_marginTop="16dp" /> <TextView android:id="@+id/update_message" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="发现新版本,是否更新?" android:textSize="18sp" android:textColor="@android:color/black" android:layout_below="@id/update_title" android:layout_centerHorizontal="true" android:layout_marginTop="16dp" /> <Button android:id="@+id/update_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="立即更新" android:layout_below="@id/update_message" android:layout_centerHorizontal="true" android:layout_marginTop="16dp" /> </RelativeLayout> ``` 在这个示例,我们使用了RelativeLayout布局,并添加了一个ImageView用于显示更新图标,两个TextView用于显示标题和消息,以及一个Button用于触发更新操作。我们使用了各种属性来定位和对齐这些视图,例如layout_below、layout_centerHorizontal、layout_marginTop等。 您可以根据需要对这个示例代码进行修改,以满足您的具体需求。希望这可以帮助到您!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值