Android Device Chooser Shows Red X In Target Column

前端 未结 3 1334
夕颜
夕颜 2021-02-19 04:47

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 tar

相关标签:
3条回答
  • 2021-02-19 05:15

    It's becuase your devices are running Android versions 2.3.4, and 3.1, so you must have minSdkVersion="10" at the very least. Once you set the minSdkVersion to 10, then you'll get the green check mark again.

    0 讨论(0)
  • 2021-02-19 05:17

    In Eclipse, after changing the minSdkVersion and targetSdkVersion

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

    • Open the "Debug Configuration" or "Run Configuration" Dialog
    • Remove all the configurations under "Android Application"
    • Retry Right-Click on the Project > Debug As > Android Application

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

    0 讨论(0)
  • 2021-02-19 05:20

    AndroidManifest.xml:

    <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="15" />
    

    If your manifest have a higher "targetSdkVersion" than your device, it will show a "red cross(X)" next to the firmware.

    If your minSdkVersion is higher that your device it will not even run

    UPDATE:

    I tested the sample project and got the same results as my answer clarified since the beginning. (image of the project running with same specifications as the question)

    0 讨论(0)
提交回复
热议问题