Failed to find Build Tools revision 24.0.1

I got this problem today dont nkow why… try to compile the pirate pig project but it have the same problem know too:

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:app’.

failed to find Build Tools revision 24.0.1

BUILD FAILED

Total time: 3.448 secs
Build halted with errors.
Done(1)

I update to 24.0.1 in SDK Manager but now gives this error:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:transformClassesWithDexForDebug’.

com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Program Files (x86)\Java\jdk1.6.0_45\bin\java.exe’’ finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

hi, there was a discussion on this error earlier i the week, it might have a solution for you