Search code examples
androideclipseadb

Set min Android API in eclipse


I set the build target to Android 4.3, which has an API Level of 18. I updated my Android so it's running API 18 on Android version 4.3. The ADB recognizes my device. Yet when I run my application, it says it can't find any devices with min API 19. How can I make sure it looks for devices with min API 18?

enter image description here

enter image description here

enter image description here


Solution

  • You're only setting the API level with which you are compiling your app. This should always be the latest SDK version. This won't affect with which minimum SDK version you can run your app.

    You have to set the minimum SDK version in your Android Manifest:

    <uses-sdk android:minSdkVersion="18">
    

    It's API 18 in this case, but I assume you want to support older API's as well. Most people either only support ICS+ (API 14+) or go from down to GB (API 10+) all the way up.