Assuming you have a standard project structure, such as:
yourProject/ + .idea/ + gradle/wrapper/ + lib-module/ | build.gradle | build.gradle | gradlew | gradlew.bat | settings.gradle
Failure to synchronize seems to indicate a problem with the SDK / IDE configuration.
Start by opening the "Project Structure" dialog and make sure that the "Android SDK location:" value is set to the correct path.
Secondly, open the SDK manager and again make sure that you have the correct SDK location path set.
Third, make sure you have the correct version of the Android SDK Build-Tools installed. (23.0.2 in this case)
Finally, to make sure we donβt have a bad condition, I recommend making "Invalidate and Restart" from "File" β "Invalidate Caches / Restart ..."
After all this, I expect it to sync. If you do not try to run ./gradlew from the root of your project and update us with any new information.
source share