I ran into the same situation but complaining about the Build-Tools. It’s strange that it mentions version 24.0.2 while 24.0.1 is what is installed (clean install of CodeWorks)
LogPlayLevel: Making .apk with Gradle...
LogPlayLevel: Observed package id 'build-tools;24.0.0' in inconsistent location 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.1' (Expected 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.0')
LogPlayLevel: Observed package id 'build-tools;24.0.0' in inconsistent location 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.1' (Expected 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.0')
LogPlayLevel: Observed package id 'build-tools;24.0.0' in inconsistent location 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.1' (Expected 'E:\Android_Projects\Libraries\CodeWorks\android-sdk-windows\build-tools\24.0.0')
LogPlayLevel: FAILURE: Build failed with an exception.
LogPlayLevel: * What went wrong:
LogPlayLevel: A problem occurred configuring project ':app'.
LogPlayLevel: > You have not accepted the license agreements of the following SDK components:
LogPlayLevel: [Android SDK Build-Tools 24.0.2].
LogPlayLevel: Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
LogPlayLevel: Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html