seeming.amusing
seeming.amusing

Reputation: 1179

Gradle sync issue with Android Studio 0.5.1

Since updating to AS 0.5.1, I have been unable to sync up my project. Gradle gives me the following warning:

No signature of method: static com.google.common.collect.ArrayListMultimap.create() is applicable for argument types: () values: []
Possible solutions: clear(), grep(), get(java.lang.Object), get(java.lang.Object), getAt(java.lang.String), isCase(java.lang.Object)

It does not point to anything in my build.gradle file that may be causing the issue, so I am rather lost as to where to begin.

Edit: When attempting to run gradle build, I subsequently get this issue when applying the Android plugin:

A problem occurred evaluating root project 'tve-android'.
> Could not create plugin of type 'AppPlugin'.

My build.gradle file:

buildscript {
    repositories {
        mavenLocal()
        maven {
            url "http://nexus.products/nexus/content/groups/public"
        }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:0.9.+'
    }
}

apply plugin: 'android'
apply plugin: 'checkstyle'
apply plugin: 'findbugs'
apply plugin: 'jacoco'
apply plugin: 'pmd'

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.2"

    defaultConfig.minSdkVersion = 16
    defaultConfig.targetSdkVersion = 19
    defaultConfig.testInstrumentationRunner = 'android.test.InstrumentationTestRunner'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }

    sourceSets {
        main.java.srcDirs = ['src/main/java']
        main.resources.srcDirs = ['src/main/resources']
        main.res.srcDirs = ['src/res']
        main.assets.srcDirs = ['src/assets']

        androidTest.java.srcDirs = ['src/test/java']
        androidTest.resources.srcDirs = ['src/test/resources']
        androidTest.res.srcDirs = ['src/res']
        androidTest.assets.srcDirs = ['src/assets']
    }

    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
    }
}

dependencies {
    compile 'com.android.support:support-v4:19.0.+'
    compile 'commons-io:commons-io:2.+'
    compile 'commons-lang:commons-lang:2.+'
    compile 'com.loopj.android:android-async-http:1.4.+'
    compile 'com.jakewharton:disklrucache:1.0.0'
    compile 'net.jpountz.lz4:lz4:1.1.1'
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.1'
    androidTestCompile 'com.google.dexmaker:dexmaker:1.+'
    androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.+'
    androidTestCompile 'org.mockito:mockito-core:1.9.+'
}

Upvotes: 0

Views: 1479

Answers (2)

mbmc
mbmc

Reputation: 5115

Upgrading gradle to v1.10 is also needed.

Upvotes: 1

François Legrand
François Legrand

Reputation: 1233

I had the same issue and I quickly fix it just by re-import my gradle project.

Upvotes: 0

Related Questions