Obtengo el mesaje de error al sincronizar con gradle 2.14 y jdk 1.8:
Gradle sync failed: Could not initialize class com.google.common.reflect.Types$NativeTypeVariableEquals
build.gradle (app) apply plugin: 'com.android.application'
android { compileSdkVersion 22 buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.example.yas.myapplication"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.android.support:design:22.1.1' }
build.gradle // Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects { repositories { jcenter() } }
task clean(type: Delete) { delete rootProject.buildDir }