Reputation: 63546
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?
Upvotes: 0
Views: 96
Reputation: 15392
What you have selected is targetVersion
<uses-sdk android:minSdkVersion="integer"
android:targetSdkVersion="integer"
android:maxSdkVersion="integer" />
maxSdkVersion
is rarely used, it's used commonly when you have multiple APKs for your project and target different API levels
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>
Upvotes: 0
Reputation: 1734
Make Sure that the target SDK is set to 18 in your application manifest file
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18"/>
Sure should solve your problem
Upvotes: 0
Reputation: 72563
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.
Upvotes: 1
Reputation: 738
The build target is the SDK that uses to compile your source. You must verify the min SDK on the manifest file and ensure that its 18 or lower.
Upvotes: 1