Even though I manually configured JDK project structure file/Project structure it still shows this error FAILURE: Build failed with an exception.
`What went wrong:
My error was solved by uninstalling all java updates and java from control panel and reinstalling JDK