I got the following Error in android Studio 2.2.3 when I sync gradle.
Error:Cause: unable to find valid certification path to requested target
Run bellow command in Android studio terminal after opening the same project. It worked for me.
On Windows:
gradlew cleanBuildCache
On Mac or Linux:
./gradlew cleanBuildCache