読者です 読者をやめる 読者になる 読者になる

【Android】Error:Execution failed for task ':app:preDexDebug'.

 

Error:Execution failed for task ':app:preDexDebug'.

 

Error:Execution failed for task ':app:preDexDebug'.

> org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'C:\Program Files\Java\jdk1.7.0_80\bin\java.exe''

 

⇒Java7を使えということ

 

/app/build.gradle

compileOptions {
  sourceCompatibility JavaVersion.VERSION_1_7
  targetCompatibility JavaVersion.VERSION_1_7
}