-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
  • 9,449
  • 21
  • 87
  • 142
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
  • 446
  • 2
  • 5
  • 18
0

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

Sanket Sangani
  • 253
  • 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,659
  • 11
  • 11