我正在尝试使用上面列出的框架设置项目.我正在使用这个演示项目deckard-gradle,我无法同步gradle.它说org.robolectric.gradle:gradle-androID-test-plugin:找不到0.9.4-SNAPSHOT.我该如何解决?有没有人做过这项工作?这是build.gradle文件
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') }}
解决方法:
他们目前不发布gradle-androID-test-plugin的快照版本.见:https://github.com/robolectric/gradle-android-test-plugin/issues/8
总结以上是内存溢出为你收集整理的android – intellij gradle robolectric浓缩咖啡全部内容,希望文章能够帮你解决android – intellij gradle robolectric浓缩咖啡所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)