title: Using <uses-library> in AndroidManifest file only for specific devices
body: <p>I have Android application, that will work on the different devices with scanners. And for one device model I need to use their SDK, which requires to add next code into AndroidManifest file. </p>
  
  <pre><code>&lt;uses-library
          android:name="com.datalogic.device"
          android:required="true" /&gt;
  </code></pre>
  
  <p>The problem is in that, if I will try to run this application on the another device model, program will not compile. Getting next 
  <a href="https://i.stack.imgur.com/7UJpG.png" rel="nofollow noreferrer">error.</a> When I'm removing code, which I included above, from Manifest file, everything works good.
  So is that possible to write in Java code or in the AndroidManifest file, something that will check device name, and will decide to use uses-library code or not?</p>