uses-library in AndroidManifest.xml
<p>I currently have this in my AndroidManifest.xml</p>

<p><strong>uses-library android:name="com.google.android.maps" android:required = "false"</strong></p>

<p>The specified requirement of google map api is not compulsory. (This enables me to install my application on an none-google-api emulator)</p>

<p>However, this only works for API level 7, Platform 2.1 
<strong>It doesn't work for API level 4, Platform 1.6</strong></p>

<p>I am getting an error message when I am compiling - " <strong>No resource identifier found for attribute 'required" in package 'android'</strong></p>

<p>But, when I looked at the documentation here:
<a href="http://developer.android.com/guide/topics/manifest/uses-feature-element.html" rel="nofollow">http://developer.android.com/guide/topics/manifest/uses-feature-element.html</a></p>

<p>The attribute 'required' is introduced since level 4.</p>

<p>Could somebody help me out!</p>

<hr>

<p>Thanks Aillyn</p>

<p>I think it impossible to include required attribute in uses-library tag.</p>

<p>Is there a way to include uses-library in the java code rather than in the AndroidManifest.xml??</p>
