title: Build error referencing build.xml and proguard file: "null returned: 1"
body: <p>While building my PhoneGap app (with the Facebook SDK plugin installed), I encountered this error:</p>
  
  <blockquote>
    <p>BUILD FAILED
    C:\adt-bundle-windows-x86_64-20130522\sdk\tools\ant\build.xml:653: The following error occured while executing this line:
    C:\adt-bundle-windows-x86_64-20130522\sdk\tools\ant\build.xml:698: null returned: 1</p>
  </blockquote>
  
  <p>Line 653 is: </p>
  
  <pre><code>&lt;do-only-if-manifest-hasCode elseText="hasCode = false. Skipp aidl/renderscript/R.java"&gt;
  </code></pre>
  
  <p>Line 698 is:</p>
  
  <pre><code>proguardFile="${out.absolute.dir}/proguard.txt"
  </code></pre>
  
  <p>My solutions so far include the following:</p>
  
  <ol>
  <li>Ran <code>android update project</code> to force generation of the <code>proguard-project.txt</code> file, as well as update the <code>local.properties</code> and <code>project.properties</code> file.</li>
  <li>Edited <code>C:\adt-bundle-windows-x86_64-20130522\sdk\tools\ant\build.xml</code> so that all mentions to <code>proguard.txt</code> become <code>proguard-project.txt</code>.</li>
  <li>ran <code>ant -logfile ./antLogFile.txt release</code>. Here is the log file.</li>
  </ol>
  
  <blockquote>
    <p>-set-mode-check:</p>
    
    <p>-set-release-mode:</p>
    
    <p>-release-obfuscation-check:
         [echo] proguard.config is C:\adt-bundle-windows-x86_64-20130522\sdk/tools/proguard/proguard-android.txt:proguard-project.txt
         [echo] Proguard.config is enabled</p>
    
    <p>-pre-build:</p>
    
    <p>-check-env:  [checkenv] Android SDK Tools Revision 22.6.2  [checkenv] Installed at C:\adt-bundle-windows-x86_64-20130522\sdk</p>
    
    <p>-setup:
         [echo] Project Name: HelloWorld   [gettype] Project Type: Application</p>
    
    <p>-build-setup: [getbuildtools] Using latest Build Tools: 19.0.3
         [echo] Resolving Build Target for HelloWorld... [gettarget] Project Target:   Android 2.3.3 [gettarget] API level:        10
    [gettarget] WARNING: Attribute minSdkVersion in AndroidManifest.xml
    (14) is higher than the project target API level (10)
         [echo] ----------
         [echo] Creating output directories if needed...
         [echo] ----------
         [echo] Resolving Dependencies for HelloWorld... [dependency] Library dependencies: [dependency]  [dependency] ------------------
    [dependency] Ordered libraries: [dependency]  [dependency]
    ------------------ [dependency] API&lt;=15: Adding annotations.jar to the classpath.
         [echo] ----------
         [echo] Building Libraries with 'release'...</p>
    
    <p>nodeps:</p>
    
    <p>-set-mode-check:</p>
    
    <p>-set-release-mode:</p>
    
    <p>-release-obfuscation-check:
         [echo] proguard.config is C:\adt-bundle-windows-x86_64-20130522\sdk/tools/proguard/proguard-android.txt:proguard-project.txt
         [echo] Proguard.config is enabled</p>
    
    <p>-pre-build:</p>
    
    <p>-check-env:  [checkenv] Android SDK Tools Revision 22.6.2  [checkenv] Installed at C:\adt-bundle-windows-x86_64-20130522\sdk</p>
    
    <p>-setup:
         [echo] Project Name: facebook   [gettype] Project Type: Android Library</p>
    
    <p>-build-setup: [getbuildtools] Using latest Build Tools: 19.0.3
         [echo] Resolving Build Target for facebook... [gettarget] Project Target:   Android 2.3.3 [gettarget] API level:        10
         [echo] ----------
         [echo] Creating output directories if needed...
        [mkdir] Created dir: C:\Users\brian.lee\Desktop\Eclipse Workspace\chumba_connect_trunk_new\facebook-android-sdk-3.14.1\facebook\bin\rsObj
        [mkdir] Created dir: C:\Users\brian.lee\Desktop\Eclipse Workspace\chumba_connect_trunk_new\facebook-android-sdk-3.14.1\facebook\bin\rsLibs
         [echo] ----------
         [echo] Resolving Dependencies for facebook... [dependency] Library dependencies: [dependency] No Libraries [dependency] 
    [dependency] ------------------ [dependency] API&lt;=15: Adding
    annotations.jar to the classpath.</p>
    
    <p>-code-gen: [mergemanifest] Found Deleted Target File [mergemanifest] Merging AndroidManifest files into one. [mergemanifest] Manifest
    merger disabled. Using project manifest only.
         [echo] Handling aidl files...
         [aidl] No AIDL files to compile.
         [echo] ----------
         [echo] Handling RenderScript files...
         [echo] ----------
         [echo] Handling Resources...
         [aapt] Generating resource IDs...
         [aapt] invalid resource directory name: C:\Users\brian.lee\Desktop\Eclipse
    Workspace\chumba_connect_trunk_new\facebook-android-sdk-3.14.1\facebook\bin\res/crunch</p>
    
    <p>BUILD FAILED
    C:\adt-bundle-windows-x86_64-20130522\sdk\tools\ant\build.xml:601: The
    following error occurred while executing this line:
    C:\adt-bundle-windows-x86_64-20130522\sdk\tools\ant\build.xml:653: The
    following error occurred while executing this line:
    C:\adt-bundle-windows-x86_64-20130522\sdk\tools\ant\build.xml:698:
    null returned: 1</p>
    
    <p>Total time: 2 seconds</p>
  </blockquote>
  
  <p>All of my attempts yielded no progress. <strong>Why does this error occur? What must I do to build successfully?</strong></p>