Skip to main content
7 de 8
se añadieron 1273 caracteres en el cuerpo
Yasel
  • 31
  • 6

Problemas con update android studio 2.1.3

Obtengo el mensaje 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

Cuando doy clean al project me da este otro error al sincronizar >Error:Could not create an instance of type org.gradle.api.internal.project.DefaultProject_Decorated. >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

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
}*
Yasel
  • 31
  • 6