4

J'ai un projet où je mélange et régulière Android Gradle correspondance Plugin:Dans Android Studio 2.1.3, Gradle expérimental ne fonctionne pas?

apply plugin: 'com.android.library' 

et Plugin expérimental Gradle comme une bibliothèque:

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

Dans mon build.gradle ensemble je les dépendances suivantes:

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' 
    } 
} 

Et maintenant, après mise à jour Android 2.1.3, je reçois l'erreur suivante juste après la 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

A cette époque Dans le .idea Android studio IDE journal, je vois l'erreur suivante:

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

Lorsque je fixe le fichier gradle-wrapper.properties je reçois, après 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

et encore et encore ...

Je n'ai pas la moindre idée ici ...

Répondre

4

Mise à niveau expérimental 0.7.3 gradle:

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

Il permet la compatibilité wrapper gradle 2.14.1.

+0

Merci Hrk, les constructions NDK et les projets expérimentaux fonctionnent maintenant. – neuman8