3

I'm getting this error when I press "run app". I been searching for a fix the last two days, can you help me?

I have Android Studio 0.4.3 installed, this issue started when my school update Java on my school computer.

org.gradle.tooling.GradleConnectionException: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'http://services.gradle.org/distributions/gradle-1.9-all.zip'.: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'http://services.gradle.org/distributions/gradle-1.9-all.zip'.

 buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.7.+' } } apply plugin: 'android' repositories { mavenCentral() } android { compileSdkVersion 19 buildToolsVersion "19.0.0" defaultConfig { minSdkVersion 11 targetSdkVersion 19 } buildTypes { release { runProguard false proguardFile getDefaultProguardFile('proguard-android.txt') } } productFlavors { defaultFlavor { proguardFile 'proguard-rules.txt' } } } dependencies { compile 'com.android.support:appcompat-v7:+' compile 'com.android.support:appcompat-v7:18.0.+' } 

This did not solve the issue:

5
  • please include your all build.gradle files in the question. Commented Jan 24, 2014 at 10:22
  • I only found one build.gradle file :) Commented Jan 24, 2014 at 10:29
  • ok. Also check Help > About to confirm on which version of JRE Studio is running ? Commented Jan 24, 2014 at 10:30
  • It says JRE:1.7.0_51-b13 x86 Commented Jan 24, 2014 at 10:33
  • Check in File > Project Structure > Android SDK, is it also pointing to your jdk 1.7 directory ? Commented Jan 24, 2014 at 10:38

1 Answer 1

1

Close Android Studio, take a backup and delete all these files from your studio setup directory and start it again, might be it can help you

android-studio/plugins/android/lib/builder-0.6.1.jar android-studio/plugins/android/lib/builder-model-0.6.1.jar android-studio/plugins/gradle/lib/gradle-base-services-1.8.jar android-studio/plugins/gradle/lib/gradle-build-setup-1.8.jar android-studio/plugins/gradle/lib/gradle-core-1.8.jar android-studio/plugins/gradle/lib/gradle-messaging-1.8.jar android-studio/plugins/gradle/lib/gradle-native-1.8.jar android-studio/plugins/gradle/lib/gradle-plugins-1.8.jar android-studio/plugins/gradle/lib/gradle-tooling-api-1.8.jar android-studio/plugins/gradle/lib/gradle-wrapper-1.8.jar android-studio/plugins/gradle/lib/guava-11.0.2.jar 

Let me know if it doesn't solve your problem.

Sign up to request clarification or add additional context in comments.

9 Comments

It gave me 57 errors, what should I do after deleting those files?
sync your project with gradle from studio or clse studio and open it again.
I can't because I get this error: NoClassDefFoundError: update failed for AnAction with ID=AndroidConnectDebuggerAction: com/android/builder/model/SourceProvider
It solved the problem for many as my answer here stackoverflow.com/questions/21213487/…
I have 19 reputation and I need 20 to chat :(
|

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.