Android设备选择器显示红色的X在目标列 [英] Android Device Chooser Shows Red X In Target Column

查看:106
本文介绍了Android设备选择器显示红色的X在目标列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近建立了一个Android应用程序与7的minSdkVersion和10 targetSdkVersion我现在做的应用程序,平板电脑兼容,增加动作条。所以,我更新通过targetSdkVersion为15,在我的项目属性,动了我的项目建设Tarket至Android 4.0.3,API 15.我也反复检查我的Java编译器是1.6。

I've recently built an Android app with a minSdkVersion of 7 and targetSdkVersion of 10. I'm now making the app tablet compatible and adding action bars. So I updated by targetSdkVersion to 15 and in my project properties, moved my Project Build Tarket to Android 4.0.3, API 15. I also double-checked that my Java Compiler is 1.6.

在不进行任何其他更改我的code,我尝试运行我的应用程序,并在Android设备选配,我的两个物理设备,版本2.3.4和3.1,都有一个红色的X在目标列,而不是绿色的对勾。

Without making any other changes to my code, I try to run my app and in the Android Device Chooser, my two physical devices, versions 2.3.4 and 3.1, both have a red X in the Target column, instead of the green check mark.

我还与ActionbarCompat示例应用程序,并从ActionbarSherlock一个示例应用程序,当我运行一个这些应用程序,我的两个设备,显示一个绿色的对勾。这两个示例应用程序有自己的项目生成目标设置为4.0.3,而我在我的应用程序相同的sdkVersion设置。据我所知,我的应用程序是安装程序一样的人。为什么我的应用程序,然后有一个红色的X旁边的目标列在我的设备版本。

I'm also working with the ActionbarCompat sample app and a sample app from ActionbarSherlock and when I run one of those apps, both of my devices, show a green check mark. Both of these sample apps have their Project Build Target set to 4.0.3 and the same sdkVersion settings that I have in my app. As far as I can tell, my app is setup the same as the others. Why does my app then have a red X next to my device versions in the Target column.

谢谢!

推荐答案

在Eclipse中,改变后的minSdkVersion和targetSdkVersion

In Eclipse, after changing the minSdkVersion and targetSdkVersion

如果在Android设备选择器仍显示红色的X上的设备(这应该是兼容机)。尝试:

if the "Android Device Chooser" still shows the Red X on the Devices (which should be compatibles). Try:

  • 打开调试配置或运行配置对话框
  • 删除在Android应用程序
  • 所有配置
  • 重试对项目点击右键>调试方式> Android应用程序

所有兼容设备应轮流绿色对勾了。

All compatible devices should turns to the green check mark now.

这篇关于Android设备选择器显示红色的X在目标列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆