title: How to define v7 appcompat dependency correctly?
body: <p>I'm trying to get an (inherited) Android project to build. I'm using <a href="http://developer.android.com/tools/building/building-cmdline.html" rel="noreferrer">Ant &amp; command line tools</a> (and IDEA).</p>
  
  <p>In styles.xml, there are references that cannot be resolved such as:</p>
  
  <pre><code>&lt;style name="AppBaseTheme" parent="@style/Theme.AppCompat.Light"&gt;
  </code></pre>
  
  <p>This is the original error I ran into:</p>
  
  <pre><code>[...]/res/values/styles.xml:8: error: Error retrieving parent for item:
  No resource found that matches the given name '@style/Theme.AppCompat.Light'.
  </code></pre>
  
  <p>I then noticed that <code>project.properties</code> has this appcompat reference which is broken on my (OS X) machine:</p>
  
  <pre><code>target=android-18
  android.library.reference.1=../../../../adt-bundle-linux-x86_64/sdk/extras/android/support/v7/appcompat
  </code></pre>
  
  <p>I tried to fix that by making the reference relative to <code>${sdk.dir}</code>:</p>
  
  <pre><code>android.library.reference.1=${sdk.dir}/extras/android/support/v7/appcompat
  </code></pre>
  
  <p>So now that path should be correct. But now when I run <code>ant debug</code>:</p>
  
  <pre><code>BUILD FAILED
  /opt/android-sdk-macosx/tools/ant/build.xml:573: 
    /opt/android-sdk-macosx/extras/android/support/v7/appcompat resolve to a 
    path with no project.properties file for project /Users/joka/devel/project/
  </code></pre>
  
  <p>So, any ideas? What's the simplest way to get this project built?</p>
  
  <p>(Please note that Ecplise-specific advice won't be useful to me.)</p>
  
  <p><em>Edit</em>: The Android SDK installation looks like this:</p>
  
  <p><img src="https://i.stack.imgur.com/adUuX.png" alt="enter image description here"></p>