0

getting this after downloading gradle 2.10 with android studio 1.5.1. when running gradle form the command line. gradlew complains about not finding tools.jar.

changing the plugin to: classpath 'com.android.tools.build:gradle:1.5.0' (from 1.3.1) makes gradle iD work. gradlew iD still fails with not finding tools.jar.

how do i fix the tools.jar problem?

is there an easy/proper way to get the wrapper to use the 2.10 version?

edit: solved the tools.jar problem (was using jdk1.9.0) but that has intoduced a bunch of: Execution failed for task ':app:transformClassesWithDexForDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.E xecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_60\bin\java.exe''

edit: got those to go away by removing the: compile files("${jdkHome}/lib/tools.jar") dependency. so what worked was to switch from jdk 1.9 to jdk 1.8.

Ray Tayek
  • 9,841
  • 8
  • 50
  • 90
  • How did you switch to 2.10? Can you post the exact error message you're seeing please. – RaGe Jan 27 '16 at 05:22
  • see: http://stackoverflow.com/a/23973537/745574 – RaGe Jan 27 '16 at 05:31
  • i downloaded 2.10 and added it to my classpath. then changed the plugin to: classpath 'com.android.tools.build:gradle:1.5.0' – Ray Tayek Jan 27 '16 at 06:10
  • * What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'. > Could not find tools.jar – Ray Tayek Jan 27 '16 at 06:23
  • foo, no tools.jar in jdk1.9.0 :( – Ray Tayek Jan 27 '16 at 06:29
  • now jdk1.8.0_60 is failing with: Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: - stay tuned. – Ray Tayek Jan 27 '16 at 06:37
  • see edit - had to remove the compile files("${jdkHome}/lib/tools.jar") dependency no that i switched back to jdk 1.8 – Ray Tayek Jan 27 '16 at 07:14

0 Answers0