title: Cannot get Cordova project building in VS2015 with the facebook connect plugin
body: <p>I've tried everything, but cannot seem to get it working. I've done the following: </p>
  
  <pre><code>1.Remove the plugins with the variables via the config designer.
  2.Update to Cordova 5.0.0 via the config designer (Platforms &gt; Cordova CLI)
  3.From the command line: 1.Go to your project directory.
  2.Type the following substituting the plugin name for the plugin you wish to add:
  3.npm install -g cordova
  4.cordova plugin add nl.x-services.plugins.launchmyapp --variable URL_SCHEME=myscheme
  </code></pre>
  
  <p>But I still cannot build. Here is the detailed output from MSBUILD :</p>
  
  <p><a href="http://pastebin.com/7enSzCxs" rel="nofollow">http://pastebin.com/7enSzCxs</a></p>
  
  <p>And a highlight of some of the errors I'm getting </p>
  
  <pre><code>1&gt;  BUILD FAILED
  1&gt;  C:\Users\Adam\AppData\Local\Android\android-sdk\tools\ant\build.xml:601: The following error occurred while executing this line:
  1&gt;  F:\GIT\CordovaFb\BlankCordovaApp1\fbtest\platforms\android\com.phonegap.plugins.facebookconnect\myapp2568ddfac877478fb806edc911cff37e-FacebookLib\custom_rules.xml:4: F:\GIT\CordovaFb\BlankCordovaApp1\fbtest\platforms\android\com.phonegap.plugins.facebookconnect\myapp2568ddfac877478fb806edc911cff37e-FacebookLib\ant-build does not exist.
  </code></pre>
  
  <p>And</p>
  
  <pre><code>1&gt;  BUILD FAILED
  1&gt;  C:\Users\Adam\AppData\Local\Android\android-sdk\tools\ant\build.xml:470: The following error occurred while executing this line:
  1&gt;  C:\Users\Adam\AppData\Local\Android\android-sdk\tools\ant\build.xml:441: Unable to delete directory F:\GIT\CordovaFb\BlankCordovaApp1\fbtest\platforms\android\com.phonegap.plugins.facebookconnect\myapp2568ddfac877478fb806edc911cff37e-FacebookLib\bin
  </code></pre>
  
  <p>And finally </p>
  
  <pre><code>1&gt;
  1&gt;  F:\GIT\CordovaFb\BlankCordovaApp1\fbtest\platforms\android\cordova\node_modules\q\q.js:126
  1&gt;                      throw e;
  1&gt;                            ^
  1&gt;  Error code 1 for command: cmd with args: /s /c "ant debug -f F:\GIT\CordovaFb\BlankCordovaApp1\fbtest\platforms\android\build.xml"
  1&gt;  Command finished with error code 8: F:\GIT\CordovaFb\BlankCordovaApp1\fbtest\platforms\android\cordova\build.bat --debug,--ant,
  1&gt;MDAVSCLI : error : F:\GIT\CordovaFb\BlankCordovaApp1\fbtest\platforms\android\cordova\build.bat: Command failed with exit code 8
  1&gt;Done executing task "MdaVsCli" -- FAILED.
  1&gt;Done building target "BuildMDA" in project "fbtest.jsproj" -- FAILED.
  1&gt;Build FAILED.
  </code></pre>
  
  <p>Any ideas at all? Using a fresh install of VS2015 with the tools for cordova, trying to build for android.</p>
  
  <p>EDIT:  </p>
  
  <p>So after taking the advice of Kamil Pajdzik below, I used build.bat to compile it and found some issues with my path being waaay to long. I mapped a drive to cut down the length and it will now build AOK from the build.bat.</p>
  
  <p>Still no dice in Visual studio though (I assume this is difference between build.bat using gradle and vs using ant).</p>
  
  <p>My only error now is :</p>
  
  <pre><code>1&gt;  -code-gen:
  1&gt;  [mergemanifest] Merging AndroidManifest files into one.
  1&gt;  [mergemanifest] Manifest merger disabled. Using project manifest only.
  1&gt;       [echo] Handling aidl files...
  1&gt;       [aidl] No AIDL files to compile.
  1&gt;       [echo] ----------
  1&gt;       [echo] Handling RenderScript files...
  1&gt;       [echo] ----------
  1&gt;       [echo] Handling Resources...
  1&gt;       [aapt] Generating resource IDs...
  1&gt;       [aapt] Z:\fbtest\platforms\android\bin\AndroidManifest.xml:14: error: Error: No resource found that matches the given name (at 'value' with value '@string/fb_app_id').
  1&gt;       [aapt]
  1&gt;       [aapt] Z:\fbtest\platforms\android\bin\AndroidManifest.xml:15: error: Error: No resource found that matches the given name (at 'label' with value '@string/fb_app_name').
  1&gt;       [aapt]
  1&gt;
  1&gt;  BUILD FAILED
  1&gt;  C:\Users\Adam\AppData\Local\Android\android-sdk\tools\ant\build.xml:653: The following error occurred while executing this line:
  1&gt;  C:\Users\Adam\AppData\Local\Android\android-sdk\tools\ant\build.xml:698: null returned: 1
  1&gt;
  </code></pre>