title: building osmand with "ant debug" gives error
body: <p>I have checked out latest Osmand source code from here 
  and followed all the steps from here</p>
  
  <p>now i am trying to build apk through ant with command ant debug but it fails</p>
  
  <p>i executed following commands :</p>
  
  <pre><code>myname@myname-VirtualBox:~/dev/osmand/android/OsmAnd$ ant -f build.xml
  which gives output as
  BUILD SUCCESSFUL
  </code></pre>
  
  <p>after when i try </p>
  
  <pre><code>myname@myname-VirtualBox:~/dev/osmand/android/OsmAnd$ ant debug
  </code></pre>
  
  <p>it fails with following log in the end : </p>
  
  <pre><code>-crunch:
     [crunch] Crunching PNG Files in source dir: /home/moonshooter/dev/osmand/android/OsmAnd/res
     [crunch] To destination dir: /home/moonshooter/dev/osmand/android/OsmAnd/bin/res
     [crunch] Crunched 0 PNG files to update cache
  
  -package-resources:
  
  BUILD FAILED
  /home/myname/dev/osmand/android/OsmAnd/build.xml:27: The following error occurred while executing this line:
  /home/myname/dev/osmand/android/OsmAnd/build.xml:28: Missing attribute libraryRFileRefid
  
  Total time: 18 seconds
  </code></pre>
  
  <p>the 27th and 28th lines in xml are </p>
  
  <pre><code>&lt;do-only-if-not-library elseText="Library project: do not package resources..."&gt;
                      &lt;aapt executable="${aapt}" command="package" versioncode="${version.code}"versionname="${version.name}" debug="${build.is.packaging.debug}" manifest="${out.manifest.abs.file}"assets="${asset.absolute.dir}" androidjar="${project.target.android.jar}" apkfolder="${out.absolute.dir}"nocrunch="${build.packaging.nocrunch}" resourcefilename="${resource.package.file.name}"resourcefilter="${aapt.resource.filter}" libraryResFolderPathRefid="project.library.res.folder.path"libraryPackagesRefid="project.library.packages" previousBuildType="$`enter code here`{build.last.target}"buildType="${build.target}" ignoreAssets="${aapt.ignore.assets}"&gt;
  </code></pre>
  
  <p>and here is the whole file <a href="http://pastebin.com/Dv20iT8r" rel="nofollow">http://pastebin.com/Dv20iT8r</a></p>
  
  <p>Can any one tell me what is the problem?</p>