android - intellij + gradle + robolectric + espresso -


i trying setup project using frameworks listed above. i'm using demonstration project deckard-gradle , cannot sync gradle. says org.robolectric.gradle:gradle-android-test-plugin:0.9.4-snapshot not found. how fix this? has made work? here build.gradle file

buildscript {     repositories {         mavenlocal()         mavencentral()     }      dependencies {         classpath 'com.android.tools.build:gradle:0.9.2'         classpath 'org.robolectric.gradle:gradle-android-test-plugin:0.9.4-snapshot'     } }  allprojects {     repositories {         mavencentral()     } }  apply plugin: 'android' apply plugin: 'android-test'  android {     packagingoptions {         exclude 'license.txt'         exclude 'meta-inf/license'         exclude 'meta-inf/license.txt'         exclude 'meta-inf/notice'     }     compilesdkversion 19     buildtoolsversion "19.0.3"      defaultconfig {         minsdkversion 18         targetsdkversion 18         versioncode 2         versionname "1.0.0-snapshot"         testinstrumentationrunner "com.google.android.apps.common.testing.testrunner.googleinstrumentationtestrunner"     }     buildtypes {         release {             runproguard false         }     }      sourcesets {         main {             manifest.srcfile 'androidmanifest.xml'             res.srcdirs = ['res']         }         androidtest {             setroot('src/test')         }     } }  androidtest {     include '**/*test.class'     exclude '**/espresso/**/*.class' }  dependencies {     repositories {         mavencentral()         maven {             url 'https://oss.sonatype.org/content/repositories/snapshots/'         }     }     // espresso     androidtestcompile files('lib/espresso-1.1.jar', 'lib/testrunner-1.1.jar', 'lib/testrunner-runtime-1.1.jar')     androidtestcompile 'com.google.guava:guava:14.0.1',             'com.squareup.dagger:dagger:1.1.0',             'org.hamcrest:hamcrest-integration:1.1',             'org.hamcrest:hamcrest-core:1.1',             'org.hamcrest:hamcrest-library:1.1'      androidtestcompile('junit:junit:4.11') {         exclude module: 'hamcrest-core'     }     androidtestcompile('org.robolectric:robolectric:2.3-snapshot') {         exclude module: 'classworlds'         exclude module: 'maven-artifact'         exclude module: 'maven-artifact-manager'         exclude module: 'maven-error-diagnostics'         exclude module: 'maven-model'         exclude module: 'maven-plugin-registry'         exclude module: 'maven-profile'         exclude module: 'maven-project'         exclude module: 'maven-settings'         exclude module: 'nekohtml'         exclude module: 'plexus-container-default'         exclude module: 'plexus-interpolation'         exclude module: 'plexus-utils'         exclude module: 'wagon-file'         exclude module: 'wagon-http-lightweight'         exclude module: 'wagon-http-shared'         exclude module: 'wagon-provider-api'     }     androidtestcompile 'com.squareup:fest-android:1.0.+' }  apply plugin: 'idea'  idea {     module {         testoutputdir = file('build/test-classes/debug')     } } 

they not publish snapshot versions of gradle-android-test-plugin. see: https://github.com/robolectric/gradle-android-test-plugin/issues/8


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -