How to force compile error for api method that is not in minSdkVersion
<p>I've been getting NoSuchMethodException crashes on older devices and I'm wondering why the eclipse IDE isn't giving me at least a warning for using methods that aren't supported yet on older devices. I have the minSDKVersion field set in my AndroidManifest.xml correctly. Is there anyway to get a compile error or at least a warning if I use a method that can't be run on minSdkVersion devices?</p>

<p>I've got the following in my AndroidManifest.xml</p>

<pre><code>&lt;uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="16" &gt;
&lt;/uses-sdk&gt;
</code></pre>

<p>I don't want to have to test every screen and function of this huge app with an old device. </p>

<p>Thanks!</p>
