简体   繁体   中英

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?

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

更新了解决该问题的Android Studio。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM