Ilya Gazman
Ilya Gazman

Reputation: 32261

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?

Upvotes: 15

Views: 11250

Answers (3)

Austin Hanson
Austin Hanson

Reputation: 22040

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).

Upvotes: 17

Yuki  Yoshida
Yuki Yoshida

Reputation: 1263

this error occurs at IntelliJ IDEA, too. and I try some version of IntelliJ IDE

build tool 19.1.0 and gradle plugin 0.11

  • Android Studio 0.8.1 : build success
  • IntelliJ IDEA 13.1 : this error still occurs at IU-135.760
  • IntelliJ IDEA 13.1 EAP : this error still occurs at IU-135.1019
  • IntelliJ IDEA 14 EAP : build success at IU-138.777

I can't find this fix in 14 EAP's release note, but it seems to be fixed at 14 EAP.

Upvotes: 2

Prakash
Prakash

Reputation: 4617

Updated Android Studio that resolved the problem.

Upvotes: 3

Related Questions