On trying to run Android Studio 2.2 Preview 1, it gives the following error on gradle build:
Error:Please use JDK 8 or newer.
If
Yes, I strongly agree with Episodex. but still, the problem would occur please do as described below, Click on File menu at the top of the left corner and a select menu of Invalidate caches/Restart...