Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio after updating to build tools 19.1.0

Just upgraded my Android build tools version to 19.1.0 and this is what I am getting:

Unsupported method: Dependencies.getJars(). The version of Gradle you connect to does not support that method. To resolve the problem you can change/upgrade the target version of Gradle you connect to. Alternatively, you can ignore this exception and read other information from the model.: Unsupported method: Dependencies.getJars().

I searched all my libraries and dependancies and all is set to 19.1.0

What am I missing?

like image 556
Ilya Gazman Avatar asked Jun 06 '14 18:06

Ilya Gazman


People also ask

How do I update my build tools?

Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.

Which Android SDK build tools should I install?

Which version should be used? Answer: Use the most recent version. For those using Android Studio with Gradle, the buildToolsVersion has to be set in the build. gradle (Module: app) file.


1 Answers

Version 0.11 of the Android Gradle plugin was just released (6/6/14). Change your build.gradle settings to "0.10.+".

classpath 'com.android.tools.build:gradle:0.10.+'

Note: This should be considered a temporary solution until you can update Android Studio and your Android SDK (particularly your build tools).

like image 106
Austin Hanson Avatar answered Nov 12 '22 07:11

Austin Hanson