title: Aapt add library resources
body: <p>I'm trying to build apk manually (without gradle) according to <a href="https://medium.com/@authmane512/how-to-build-an-apk-from-command-line-without-ide-7260e1e22676" rel="nofollow noreferrer">this manual</a>, but I don't understand how to use libraries with resources. I've downloaded Android Support Library, unzipped <code>appcopmpat</code> directory and specified <code>-classpath</code> in <code>javac</code>. I'm trying also to specify path to resources in <code>aapt</code>, but it reports name conflict. Should I just rename my app's resources, or is there a better solution?</p>
  
  <p>Here's the command (<code>$MANIFEST</code> and <code>$ANDROID</code> are just paths):</p>
  
  <pre><code>aapt package -f -m -J app/src -M ${MANIFEST} -I ${ANDROID} -S appcompat/res app/res
  </code></pre>
  
  <p>And the error message:</p>
  
  <pre><code>app/res/values/strings.xml: error: Duplicate file.
  appcompat/res/values/strings.xml: Original is here.
  </code></pre>