While importing project as gradle have error Cause: unexpected end of block data. Project has several modules. I\'m using Idea 132.719 and 1.8 gradle.
A good tip in with these type of problems if to use the command line version of gradlew, it can give you much more useful information, for the above problem it might look like this:
Error code from Android studio
Gradle 'bluetooth-new-circle' project refresh failed
Error:Cause: unexpected end of block data
Error code from command line gradlew with the same project:
~/source_code/bluetooth$ ./gradlew clean assembleDebug :AccessoryController:clean UP-TO-DATE :BluetoothAudioProxy:clean UP-TO-DATE :BluetoothGatt:clean UP-TO-DATE :ScaleMonitor:clean UP-TO-DATE :UsbMonitor:clean UP-TO-DATE :AccessoryController:preBuild FAILED
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':AccessoryController:preBuild'.
The SDK Build Tools revision (19.0.2) is too low for project ':AccessoryController'. Minimum required is 19.1.0
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 10.078 secs ~/source_code/bluetooth$