Error during building/compiling Android App using Netbeans "taskdef class com.android.ant.SetupTask cannot be found"
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4605356/ant-failed-to-build">Ant failed to build</a>  </p>
</blockquote>



<p>I have updated my Android SDK with latest available updates, Now Netbeans Android build fails with below message. please help me to fix this problem.</p>

<blockquote>
  <p>E:\Android\NetbeansProjects\ProjectName\build.xml:47: taskdef class
  com.android.ant.SetupTask cannot be found  using the classloader
  AntClassLoader[E:\Android\android-sdk-windows\tools\lib\anttasks.jar;E:\Android\android-sdk-windows\tools\lib\common.jar;E:\Android\android-sdk-windows\tools\lib\sdklib.jar;E:\Android\android-sdk-windows\tools\lib\androidprefs.jar;E:\Android\android-sdk-windows\tools\lib\mkidentity.jar;E:\Android\android-sdk-windows\tools\lib\commons-compress-1.0.jar;E:\Android\android-sdk-windows\tools\lib\httpclient-4.1.1.jar;E:\Android\android-sdk-windows\tools\lib\httpcore-4.1.jar;E:\Android\android-sdk-windows\tools\lib\httpmime-4.1.1.jar;E:\Android\android-sdk-windows\tools\lib\commons-logging-1.1.1.jar;E:\Android\android-sdk-windows\tools\lib\commons-codec-1.4.jar;E:\Android\android-sdk-windows\tools\lib\manifmerger.jar]</p>
</blockquote>
