Gradle sync issue with Android Studio 0.5.1 -
since updating 0.5.1, have been unable sync project. gradle gives me following warning:
no signature of method: static com.google.common.collect.arraylistmultimap.create() applicable argument types: () values: [] possible solutions: clear(), grep(), get(java.lang.object), get(java.lang.object), getat(java.lang.string), iscase(java.lang.object)
it not point in build.gradle file may causing issue, rather lost begin.
edit: when attempting run gradle build
, subsequently issue when applying android plugin:
a problem occurred evaluating root project 'tve-android'. > 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.+' }
upgrading gradle v1.10 needed.
Comments
Post a Comment