android studio mix2,In Android Studio 2.1.3 is experimental gradle not working?

I have a project where I mix and match regular Android Gradle Plugin:

apply plugin: 'com.android.library'

and Experimental Gradle Plugin as a library:

apply plugin: 'com.android.model.library'

In my overall build.gradle I have the following dependencies:

buildscript {

repositories {

jcenter()

}

dependencies {

classpath 'com.google.gms:google-services:3.0.0'

classpath 'com.android.tools.build:gradle-experimental:0.7.2'

classpath 'com.android.tools.build:gradle:2.1.3'

}

}

And now after upgrade to Android 2.1.3, I get the following error right after the Gradle Sync:

Gradle sync failed: Gradle version 2.10 is required. Current version is >2.14.1. If using the gradle wrapper, try editing the distributionUrl in ?>blah blah blah

At this time In the .idea Android Studio IDE log I see the following error:

Caused by: org.gradle.api.internal.plugins.PluginApplicationException: >Failed to apply plugin [class >'com.android.build.gradle.model.AndroidComponentModelPlugin']

When I fix the gradle-wrapper.properties file I get the following after Gradle Sync:

Error:Minimum supported Gradle version is 2.14.1. Current version is >2.10. If using the gradle wrapper, try editing the distributionUrl in >/Users/development/Desktop/android_msdk/xFAClient/Android/xFA/gradle/wrapp>er/gradle-wrapper.properties to gradle-2.14.1-all.zip

And over and over again...

I have no clue here...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值