Android Studio编译器错误

Android Studio编译器错误,android,android-studio,Android,Android Studio,我尝试使用Android Studio编译我的项目,但如果我编译应用程序,则会出现以下错误: Gradle: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':LehrerOrganizerPro:compileDebug'. > Compilation failed; see the compiler error output for details. *

我尝试使用Android Studio编译我的项目,但如果我编译应用程序,则会出现以下错误:

Gradle: 
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':LehrerOrganizerPro:compileDebug'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to    get more log output.

我该怎么做才能用Android Studio编译我的应用程序?

我也有同样的问题。看,它说我没有设置JAVA_HOME变量。我使用的是WIndows 7x64,我该怎么办?将JAVA_设置为HOME:没有帮助。我将我的
JAVA\u HOME
设置为
C:\Program Files\JAVA\jre7
,但出现了相同的错误。这与Eclipse中的
Window->Preferences->Java->Installed JREs
set Java\u HOME下的文件夹相同,而不是JRE