-2

In my android studio after creating a new project. if i run the project without doing anything or i write some code also i m getting this error

Error:Execution failed for task :app:transformClassesWithDexForDebug.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_65\bin\java.exe'' finished with non-zero exit value 1

if i opend a alredy created projec i can run in that.

Roman Pokrovskij
  • 8,849
  • 17
  • 82
  • 136
Udhaya
  • 39
  • 10

3 Answers3

0

According to this Discussion....the problem is with your java installation...you need to remove all traces of your java and jre then reinstall them from this Official Page...

Community
  • 1
  • 1
Intimate
  • 417
  • 2
  • 5
  • 18
0

Please,clean your project first. For this, Go to Build->Clean Project

Sanket Sangani
  • 243
  • 3
  • 10
0

Please once change JDK with 1.8.* and clean project.It'll work.

If still get multidex error then need to add multidex as well in app.

ViramP
  • 1,501
  • 10
  • 11