本文介绍了特拉维斯慈构建保持与ShellCommandUnresponsiveException失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我试图让特拉维斯慈与我的Andr​​oid应用程序的工作。如果我只执行assembleDebug它工作正常。但我想运行测试过,并产生code覆盖。这是配置我现在: 语言:机器人机器人:  组件:    下面,如果你想#取消线路    #采用Android SDK工具的最新版本     - 平台工具     - 工具    #在BuildTools版本使用的项目     - 构建 - 工具 - 23.0.1    #的SDK版本用于编译项目     - 机器人-23    #附加组件    # - 超谷歌,google_play_services    # - 超谷歌,m2repository     - 额外的Andr​​oid m2repository    # - 插件 - google_apis - 谷歌 - 19    #至少指定一个系统映像,    #如果你需要在你的测试运行模拟器(S)     - SYS-IMG-armeabi-V7A,Android为23ENV:  全球:    #安装超时分钟(2分钟默认情况下)     - ADB_INSTALL_TIMEOUT = 8before_install:  - 搭配chmod + X gradlew  - PIP安装--user codecov#模拟器管理:创建,启动和等待before_script:   - 回声无| Android的创建AVD --force --name测试--target Android为23 --abi armeabi,V7A   - 模拟器-avd测试 - 无 - 皮 - 无 - 音频 - 无窗 - 无 - 引导动画和​​放大器;   - Android的等待换模拟器   - 亚行的shell输入的keyEvent 82安培;脚本:   - ./gradlew打造connectedCheck --stacktrace  # - ./gradlew assembleDebugafter_success:   - codecov构建保持与 ShellCommandUnresponsiveException 失败,即使我已经设置了 ADB_INSTALL_TIMEOUT 全局变量8(source).构建本身并不甚至8分钟运行,所以它的怪异失败的原因。我试图删除所有资产的文件,使该应用尽可能小。但是,这并没有帮助。出现故障的建立可以在这里找到: https://travis-ci.org/Longi94/ BPTF /分支下的特拉维斯分公司,我试图得到它的工作的。有一个成功的构建。我不知道它如何通过了。下面是一个失败的构建日志的一部分: [0K $回声无| Android的创建AVD --force --name测试--target Android为23 --abi armeabi,V7A安卓6.0是一个基本的Andr​​oid平台。你想创建一个自定义硬件配置文件[无]创建AVD测试基于Android 6.0,ARM(armeabi-V7A)处理器,以下硬件配置:hw.cpu.model = Cortex-A8的hw.lcd.density = 240hw.ramSize = 512vm.heapSize = 48travis_time:结束:1030008c:开始= 1446127538783461373,光洁度= 1446127542625988764,持续时间= 3842527391[0Ktravis_fold:结束:before_script.1[0Ktravis_fold:启动:before_script.2[0Ktravis_time:启动:16b2cef4[0K $模拟器-avd测试 - 无 - 皮 - 无 - 音频 - 无窗 - 无 - 引导动画和​​放大器;travis_time:结束:16b2cef4:开始= 1446127542630405331,光洁度= 1446127542635242867,持续时间= 4837536[0Ktravis_fold:结束:before_script.2[0Ktravis_fold:启动:before_script.3[0Ktravis_time:启动:00e87790[0K $安卓等待换模拟器仿真器:警告:增加内存大小为1GB等待模拟器启动创建文件系统使用的参数:    尺寸:576716800    块大小:4096    每个组块:32768    每个组的inode:7040    Inode大小:256    杂志块:2200    标签:    块:140800    块组:5    保留块组大小:39创建文件系统,35200分之11的inode和一十四万零八百分之四千五百三十六块resize2fs中1.42.13(17月 - 2015年)该文件系统已经是140800(4K)块长。没事做!创建文件系统使用的参数:    大小:69206016    块大小:4096    每个组块:32768    每个组的inode:4224    Inode大小:256    杂志块:1024    标签:    块:16896    块组:1    保留块组大小:7创建文件系统,4224分之11的inode和16896分之1302块模拟器:UpdateCheck的:当前版本'24 .4.1',最后一个版本的'24 .4.1等待模拟器启动...(修剪由于字符)等待模拟器启动模拟器已准备就绪travis_time:结束:00e87790:开始= 1446127542639319959,光洁度= 1446127617455640922,持续时间= 74816320963[0Ktravis_fold:结束:before_script.3[0Ktravis_fold:启动:before_script.4[0Ktravis_time:启动:0b2fd946[0K $亚行外壳输入的keyEvent 82安培;travis_time:结束:0b2fd946:开始= 1446127617473299362,光洁度= 1446127617478276750,持续时间= 4977388[0Ktravis_fold:结束:before_script.4[0Ktravis_time:启动:248749b0[0K $ ./gradlew建立connectedCheck --stacktrace下载https://services.gradle.org/distributions/gradle-2.2.1-all.zip.................................................. ..............................解压/home/travis/.gradle/wrapper/dists/gradle-2.2.1-all/6dibv5rcnnqlfbq9klf8imrndn/gradle-2.2.1-all.zip到/home/travis/.gradle/wrapper/dists/gradle-2.2.1 -all / 6dibv5rcnnqlfbq9klf8imrndn设置可执行权限: /home/travis/.gradle/wrapper/dists/gradle-2.2.1-all/6dibv5rcnnqlfbq9klf8imrndn/gradle-2.2.1/bin/gradle下载https://jcenter.bintray.com/com/android/tool​​s/build/gradle/1.3.0/gradle-1.3.0.pom下载https://jcenter.bintray.com/com/android/tool​​s/build/gradle-core/1.3.0/gradle-core-1.3.0.pom下载https://jcenter.bintray.com/com/android/tool​​s/build/builder/1.3.0/builder-1.3.0.pom下载https://jcenter.bintray.com/com/android/tool​​s/lint/lint/24.3.0/lint-24.3.0.pom下载https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/5.2.1/proguard-gradle-5.2.1.pom下载https://jcenter.bintray.com/net/sf/proguard/proguard-parent/5.2.1/proguard-parent-5.2.1.pom下载https://jcenter.bintray.com/com/android/tool​​s/build/builder-model/1.3.0/builder-model-1.3.0.pom下载https://jcenter.bintray.com/com/android/tools/build/builder-test-api/1.3.0/builder-test-api-1.3.0.pom下载https://jcenter.bintray.com/com/android/tool​​s/sdklib/24.3.0/sdklib-24.3.0.pom下载https://jcenter.bintray.com/com/android/tool​​s/sdk-common/24.3.0/sdk-common-24.3.0.pom下载https://jcenter.bintray.com/com/android/tool​​s/common/24.3.0/common-24.3.0.pom下载https://jcenter.bintray.com/com/android/tools/build/manifest-merger/24.3.0/manifest-merger-24.3.0.pom下载https://jcenter.bintray.com/com/android/tool​​s/ddms/ddmlib/24.3.0/ddmlib-24.3.0.pom下载https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom下载https://jcenter.bintray.com/org/sonatype/oss/oss-parent/7/oss-parent-7.pom下载https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48.pom下载https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.pom下载https://jcenter.bintray.com/org/ow2/asm/asm/5.0.3/asm-5.0.3.pom下载https://jcenter.bintray.com/org/ow2/asm/asm-parent/5.0.3/asm-parent-5.0.3.pom下载https://jcenter.bintray.com/org/ow2/o​​w2/1.3/ow2-1.3.pom下载https://jcenter.bintray.com/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.pom下载https://jcenter.bintray.com/com/android/tool​​s/jack/jack-api/0.9.0/jack-api-0.9.0.pom下载https://jcenter.bintray.com/com/android/tool​​s/jill/jill-api/0.9.0/jill-api-0.9.0.pom下载https://jcenter.bintray.com/com/android/tool​​s/lint/lint-checks/24.3.0/lint-checks-24.3.0.pom下载https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2.pom下载https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.2.1/proguard-base-5.2.1.pom下载https://jcenter.bintray.com/com/android/tool​​s/annotations/24.3.0/annotations-24.3.0.pom下载https://jcenter.bintray.com/com/android/tools/layoutlib/layoutlib-api/24.3.0/layoutlib-api-24.3.0.pom下载https://jcenter.bintray.com/com/android/tool​​s/dvlib/24.3.0/dvlib-24.3.0.pom下载https://jcenter.bintray.com/com/google/$c$c/gson/gson/2.2.4/gson-2.2.4.pom下载https://jcenter.bintray.com/org/apache/commons/commons-com$p$pss/1.8.1/commons-com$p$pss-1.8.1.pom下载https://jcenter.bintray.com/org/apache/commons/commons-parent/33/commons-parent-33.pom下载https://jcenter.bintray.com/org/apache/apache/13/apache-13.pom下载https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.pom下载https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.1.1/httpcomponents-client-4.1.1.pom下载https://jcenter.bintray.com/org/apache/httpcomponents/project/4.1.1/project-4.1.1.pom下载https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/h​​ttpmime-4.1.pom下载https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.1/httpcomponents-client-4.1.pom下载https://jcenter.bintray.com/com/google/guava/guava/17.0/guava-17.0.pom下载https://jcenter.bintray.com/com/google/guava/guava-parent/17.0/guava-parent-17.0.pom下载https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom下载https://jcenter.bintray.com/com/android/tool​​s/lint/lint-api/24.3.0/lint-api-24.3.0.pom下载https://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.pom下载https://jcenter.bintray.com/com/intellij/annotations/12.0/annotations-12.0.pom下载https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.1/h​​ttpcore-4.1.pom下载https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-core/4.1/httpcomponents-core-4.1.pom下载https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom下载https://jcenter.bintray.com/org/apache/commons/commons-parent/5/commons-parent-5.pom下载https://jcenter.bintray.com/org/apache/apache/4/apache-4.pom下载https://jcenter.bintray.com/commons-$c$cc/commons-$c$cc/1.4/commons-$c$cc-1.4.pom下载https://jcenter.bintray.com/org/apache/commons/commons-parent/11/commons-parent-11.pom下载https://jcenter.bintray.com/com/android/tool​​s/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.pom下载https://jcenter.bintray.com/com/android/tool​​s/build/gradle/1.3.0/gradle-1.3.0.jar下载https://jcenter.bintray.com/com/android/tool​​s/build/gradle-core/1.3.0/gradle-core-1.3.0.jar下载https://jcenter.bintray.com/com/android/tool​​s/build/builder/1.3.0/builder-1.3.0.jar下载https://jcenter.bintray.com/com/android/tool​​s/lint/lint/24.3.0/lint-24.3.0.jar下载https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/5.2.1/proguard-gradle-5.2.1.jar下载https://jcenter.bintray.com/com/android/tool​​s/build/builder-model/1.3.0/builder-model-1.3.0.jar下载https://jcenter.bintray.com/com/android/tools/build/builder-test-api/1.3.0/builder-test-api-1.3.0.jar下载https://jcenter.bintray.com/com/android/tool​​s/sdklib/24.3.0/sdklib-24.3.0.jar下载https://jcenter.bintray.com/com/android/tool​​s/sdk-common/24.3.0/sdk-common-24.3.0.jar下载https://jcenter.bintray.com/com/android/tool​​s/common/24.3.0/common-24.3.0.jar下载https://jcenter.bintray.com/com/android/tools/build/manifest-merger/24.3.0/manifest-merger-24.3.0.jar下载https://jcenter.bintray.com/com/android/tool​​s/ddms/ddmlib/24.3.0/ddmlib-24.3.0.jar下载https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.jar下载https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48.jar下载https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.jar下载https://jcenter.bintray.com/org/ow2/asm/asm/5.0.3/asm-5.0.3.jar下载https://jcenter.bintray.com/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.jar下载https://jcenter.bintray.com/com/android/tool​​s/jack/jack-api/0.9.0/jack-api-0.9.0.jar下载https://jcenter.bintray.com/com/android/tool​​s/jill/jill-api/0.9.0/jill-api-0.9.0.jar下载https://jcenter.bintray.com/com/android/tool​​s/lint/lint-checks/24.3.0/lint-checks-24.3.0.jar下载https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2.jar下载https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.2.1/proguard-base-5.2.1.jar下载https://jcenter.bintray.com/com/android/tool​​s/annotations/24.3.0/annotations-24.3.0.jar下载https://jcenter.bintray.com/com/android/tools/layoutlib/layoutlib-api/24.3.0/layoutlib-api-24.3.0.jar下载https://jcenter.bintray.com/com/android/tool​​s/dvlib/24.3.0/dvlib-24.3.0.jar下载https://jcenter.bintray.com/com/google/$c$c/gson/gson/2.2.4/gson-2.2.4.jar下载https://jcenter.bintray.com/org/apache/commons/commons-com$p$pss/1.8.1/commons-com$p$pss-1.8.1.jar下载https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.jar下载https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/h​​ttpmime-4.1.jar下载https://jcenter.bintray.com/com/google/guava/guava/17.0/guava-17.0.jar下载https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar下载https://jcenter.bintray.com/com/android/tool​​s/lint/lint-api/24.3.0/lint-api-24.3.0.jar下载https://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.jar下载https://jcenter.bintray.com/com/intellij/annotations/12.0/annotations-12.0.jar下载https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.1/h​​ttpcore-4.1.jar下载https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar下载https://jcenter.bintray.com/commons-$c$cc/commons-$c$cc/1.4/commons-$c$cc-1.4.jar下载https://jcenter.bintray.com/com/android/tool​​s/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.jar下载https://jcenter.bintray.com/org/jacoco/org.jacoco.agent/0.7.4.201502262128/org.jacoco.agent-0.7.4.201502262128.pom下载https://jcenter.bintray.com/org/jacoco/org.jacoco.build/0.7.4.201502262128/org.jacoco.build-0.7.4.201502262128.pom下载https://jcenter.bintray.com/org/jacoco/org.jacoco.agent/0.7.4.201502262128/org.jacoco.agent-0.7.4.201502262128.jar:应用程序:preBuild UP-TO-DATE:应用程序:preDebugBuild UP-TO-DATE:应用程序:checkDebugManifest:应用程序:preReleaseBuild UP-TO-DATE:应用程序:prepareComAndroidSupportAppcompatV72310Library:应用程序:prepareComAndroidSupportCardviewV72310Library:应用程序:prepareComAndroidSupportDesign2310Library:应用程序:prepareComAndroidSupportRecyclerviewV72310Library:应用程序:prepareComAndroidSupportSupportV42310Library:应用程序:prepareDebugDependencies:应用程序:compileDebugAidl:应用程序:compileDebugRenderscript:应用程序:generateDebugBuildConfig:应用程序:generateDebugAssets UP-TO-DATE:应用程序:mergeDebugAssets:应用程序:generateDebugResValues:应用程序:generateDebugResources:应用程序:mergeDebugResources:应用程序:processDebugManifest:应用程序:processDebugResources:应用程序:generateDebugSources:应用程序:processDebugJavaRes UP-TO-DATE:应用程序:compileDebugJavaWithJavacNote:某些输入文件使用或覆盖脱precated API。注:重新编译-Xlint:德precation了解详细信息。:应用程序:compileDebugNdk UP-TO-DATE:应用程序:compileDebugSources:应用程序:unzipJacocoAgent:应用程序:instrumentDebug下载https://jcenter.bintray.com/org/jacoco/org.jacoco.ant/0.7.4.201502262128/org.jacoco.ant-0.7.4.201502262128.pom下载https://jcenter.bintray.com/org/jacoco/org.jacoco.core/0.7.4.201502262128/org.jacoco.core-0.7.4.201502262128.pom下载https://jcenter.bintray.com/org/jacoco/org.jacoco.report/0.7.4.201502262128/org.jacoco.report-0.7.4.201502262128.pom下载https://jcenter.bintray.com/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.pom下载https://jcenter.bintray.com/org/ow2/asm/asm-parent/5.0.1/asm-parent-5.0.1.pom下载https://jcenter.bintray.com/org/jacoco/org.jacoco.ant/0.7.4.201502262128/org.jacoco.ant-0.7.4.201502262128.jar下载https://jcenter.bintray.com/org/jacoco/org.jacoco.core/0.7.4.201502262128/org.jacoco.core-0.7.4.201502262128.jar下载https://jcenter.bintray.com/org/jacoco/org.jacoco.report/0.7.4.201502262128/org.jacoco.report-0.7.4.201502262128.jar下载https://jcenter.bintray.com/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.jar:应用程序:preDexDebug:应用程序:dexDebug:应用程序:validateDebugSigning:应用程序:packageDebug:应用程序:zipalignDebug:应用程序:assembleDebug:应用程序:checkReleaseManifest:应用程序:prepareReleaseDependencies:应用程序:compileReleaseAidl:应用程序:compileReleaseRenderscript:应用程序:generateReleaseBuildConfig:应用程序:generateReleaseAssets UP-TO-DATE:应用程序:mergeReleaseAssets:应用程序:generateReleaseResValues:应用程序:generateReleaseResources:应用程序:mergeReleaseResources:应用程序:processReleaseManifest:应用程序:processReleaseResources:应用程序:generateReleaseSources:应用程序:processReleaseJavaRes UP-TO-DATE:应用程序:compileReleaseJavaWithJavacNote:某些输入文件使用或覆盖脱precated API。注:重新编译-Xlint:德precation了解详细信息。:应用程序:compileReleaseNdk UP-TO-DATE:应用程序:compileReleaseSources:应用程序:preDexRelease:应用程序:dexRelease:应用程序:packageRelease:应用程序:assembleRelease:应用程序:组装:应用程序:compileLint:应用程序:皮棉在变种版本冉皮棉:发现102问题变式调试然皮棉:发现102问题写HTML报告文件:/home/travis/build/Longi94/bptf/app/build/outputs/lint-results.html写XML报告/home/travis/build/Longi94/bptf/app/build/outputs/lint-results.xml:应用程序:preDebugUnitTestBuild UP-TO-DATE:应用程序:prepareDebugUnitTestDependencies:应用程序:processDebugUnitTestJavaRes UP-TO-DATE:应用程序:compileDebugUnitTestJavaWithJavac UP-TO-DATE:应用程序:compileDebugUnitTestSources UP-TO-DATE:应用程序:mockableAndroidJar:应用程序:assembleDebugUnitTest:应用程序:testDebugUnitTest:应用程序:preReleaseUnitTestBuild UP-TO-DATE:应用程序:prepareReleaseUnitTestDependencies:应用程序:processReleaseUnitTestJavaRes UP-TO-DATE:应用程序:compileReleaseUnitTestJavaWithJavac UP-TO-DATE:应用程序:compileReleaseUnitTestSources UP-TO-DATE:应用程序:assembleReleaseUnitTest:应用程序:testReleaseUnitTest:应用程序:测试:应用程序:检查:应用程序:构建:应用程序:preDebugAndroidTestBuild UP-TO-DATE:应用程序:prepareDebugAndroidTestDependencies:应用程序:compileDebugAndroidTestAidl:应用程序:processDebugAndroidTestManifest:应用程序:compileDebugAndroidTestRenderscript:应用程序:generateDebugAndroidTestBuildConfig:应用程序:generateDebugAndroidTestAssets UP-TO-DATE:应用程序:mergeDebugAndroidTestAssets:应用程序:generateDebugAndroidTestResValues:应用程序:generateDebugAndroidTestResources:应用程序:mergeDebugAndroidTestResources:应用程序:processDebugAndroidTestResources:应用程序:generateDebugAndroidTestSources:应用程序:processDebugAndroidTestJavaRes UP-TO-DATE:应用程序:compileDebugAndroidTestJavaWithJavac:应用程序:compileDebugAndroidTestNdk UP-TO-DATE:应用程序:compileDebugAndroidTestSources:应用程序:preDexDebugAndroidTest:应用程序:dexDebugAndroidTest:应用程序:packageDebugAndroidTest:应用程序:assembleDebugAndroidTest:应用程序:connectedDebugAndroidTest失败失败:建立失败,一个例外。* 什么地方出了错:执行失败的任务:应用程序:connectedDebugAndroidTest。&GT; com.android.builder.testing.api.TestException:com.android.builder.testing.api.DeviceException:com.android.ddmlib.ShellCommandUnresponsiveException* 尝试:与--info或--debug选项运行,以获得更多的日志输出。*例外是:org.gradle.api.tasks.TaskExecutionException:执行失败的任务:应用程序:connectedDebugAndroidTest。    在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)    在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)    在org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)    在org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)    在org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)    在org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)    在org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)    在org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)    在org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)    在org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305)    在org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)    在org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)    在org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)    在org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)    在org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)    在org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)    在org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)    在org.gradle.execution.DefaultBuildExecuter.access $ 200(DefaultBuildExecuter.java:23)    在org.gradle.execution.DefaultBuildExecuter $ 2.proceed(DefaultBuildExecuter.java:68)    在org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)    在org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)    在org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)    在org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)    在org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)    在org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)    在org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80)    在org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)    在org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)    在org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36)    在org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)    在org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51)    在org.gradle.internal.Actions $ RunnableActionAdapter.execute(Actions.java:171)    在org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)    在org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)    在org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)    在org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)    在org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)    在org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)    在org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)    在org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)    在org.gradle.launcher.Main.doAction(Main.java:33)    在org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)    在org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)    在org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)    在org.gradle.launcher.GradleMain.main(GradleMain.java:23)    在org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33)    在org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130)    在org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)org.gradle.internal.UncheckedException:产生的原因com.android.builder.testing.api.TestException:com.android.builder.testing.api.DeviceException:com.android.ddmlib.ShellCommandUnresponsiveException    在org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:39)    在org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:66)    在org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)    在org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)    在org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)    在org.gradle.api.internal.AbstractTask $ TaskActionWrapper.execute(AbstractTask.java:579)    在org.gradle.api.internal.AbstractTask $ TaskActionWrapper.execute(AbstractTask.java:562)    在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)    在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)    ... 47更多致:com.android.builder.testing.api.TestException:com.android.builder.testing.api.DeviceException:com.android.ddmlib.ShellCommandUnresponsiveException    在com.android.builder.testing.SimpleTestRunner.runTests(SimpleTestRunner.java:93)    在com.android.build.gradle.internal.tasks.DeviceProviderInstrumentTestTask.runTests(DeviceProviderInstrumentTestTask.java:112)    在org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)    ... 54更多致:com.android.builder.testing.api.DeviceException:com.android.ddmlib.ShellCommandUnresponsiveException    在com.android.builder.testing.ConnectedDevice.getDeviceConfig(ConnectedDevice.java:259)    在com.android.builder.testing.api.DeviceConfigProviderImpl.<init>(DeviceConfigProviderImpl.java:36)    在com.android.builder.testing.SimpleTestRunner.runTests(SimpleTestRunner.java:91)    ... 56更多com.android.ddmlib.ShellCommandUnresponsiveException:产生的原因    在com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:511)    在com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:388)    在com.android.ddmlib.Device.executeShellCommand(Device.java:577)    在com.android.builder.testing.ConnectedDevice.executeShellCommand(ConnectedDevice.java:136)    在com.android.builder.testing.ConnectedDevice.getDeviceConfig(ConnectedDevice.java:256)    ... 58更多构建失败总时间:3分钟27.125秒travis_time:结束:248749b0:开始= 1446127617481908384,光洁度= 1446127825369726746,持续时间= 207887818362[0K[31; 1mThe命令./gradlew打造connectedCheck --stacktrace退出,1 [0米完成。构建退出,1。任何帮助将是AP preciated! ProbleSlover的建议后编辑:删除平台工具和工具行之后。这似乎是编译没有等待足够长的模拟器pviously启动$ P $。现在有大量的等待和构建超时错误如下: 等待模拟器启动超时(360秒),达到了;未能启动模拟器命令机器人等待换模拟器失败,并在退出时1。构建已停止。解决方案 正在禁用开机动画和 Android的等待换模拟器脚本依赖于它,所以从环的默认脚本退出仿真器是真的准备好了。阅读这很好的解释我写它时,脚本被窃听here现在的脚本工作,你只需要删除 -no-引导动画这里: - 模拟器-avd测试 - 无 - 皮 - 无 - 音频 - 无窗和放大器;另外,您也可以禁用开机动画加快,但你需要修改脚本文件,添加你知道时间够你的模拟器做好准备。有时候,我这样做,如这里 #等待设备就绪功能等待的设备准备{    本地bootanim =    当地failcounter = 0    直至[[$ bootanim=〜停止]];做       bootanim =`ADB地狱getprop init.svc.bootanim 2 - ;&安培; 1`       回声$ bootanim       如果[[$ bootanim=〜没有发现]];然后          让failcounter + = 1          如果[[$ {failcounter} -gt 30]]。然后            回声无法启动模拟器            1号出口          科幻       科幻       睡眠1    做完    睡眠30    亚行的shell输入的keyEvent 82安培;    睡150    回声完成} 更新:现在我还记得,我的回应是,一般正确的,但也有产生这个问题,特别是在Android-23等原因,很可能仍看到相同的错误后使用我的建议,看到。我不知道关于Android-23的情况下额外的问题,我需要进行调查,但我不是目前使用的Travis-CI,只有呼测试。我认为Android-23不是preinstalled,你需要更新的工具和平台工具,有时我看到一些应用程序崩溃时,我的仿真器API 23开始在家里等,这是很难知道没有看到它,但你可以的原因添加日志来试试,看看究竟发生什么事,检查我的脚本了解这一点。 UPDATE2打开stackoverflow问题和安卓这个问题错误在Android-23。 UPDATE3 原因:硬codeD和过低的超时= 5,线256 尝试{    executeShellCommand(我得到-配置,接收器,5,TimeUnit.SECONDS);    返回DeviceConfig.Builder.parse(输出);}赶上(例外五){    抛出新DeviceException(E);}错误是在本地重现的: 08:22:53.761 [错误] [org.gradle.BuildExceptionReporter]08:22:53.795产生的原因:com.android.ddmlib.ShellCommandUnresponsiveException08:22:53.795在com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:511)08:22:53.795在com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:388)08:22:53.795在com.android.ddmlib.Device.executeShellCommand(Device.java:577)08:22:53.796在com.android.builder.testing.ConnectedDevice.executeShellCommand(ConnectedDevice.java:136)08:22:53.796在com.android.builder.testing.ConnectedDevice.getDeviceConfig(ConnectedDevice.java:256)所述; --------08:22:53.796...... 78多 请明星这个问题,并阅读unity3d解决办法 UPDATE4:您可以使用亚行作为工作的时候,我测试了它的工作原理在特拉维斯: #!/斌/庆典############ ########### ########## ######### ######## ####### ###### ##### #### ### ####### ACIB SCRIPT############## ########### ########## ######### ######## ####### ###### ##### #### ### ####运行Android测试功能的Andr​​oid测试{    亚行的shell输入的keyEvent 82安培;    ./gradlew assembleDebug -Pdisable preDex    ./gradlew assembleDebugAndroidTest -Pdisable preDex    亚行安装应用程序/编译/输出/ APK / APP-debug.apk    亚行安装应用程序/编译/输出/ APK /应用程序,调试androidTest-unaligned.apk    亚行外壳时授予com.google.samples.apps.topeka android.permission.SET_ANIMATION_SCALE    亚行外壳上午仪器-w -e numShards 6 -e shardIndex 0 -e包com.google.samples.apps.topeka com.google.samples.apps.topeka.test / android.support.test.runner.AndroidJUnitRunner    亚行外壳上午仪器-w -e numShards 6 -e shardIndex 1 -e包com.google.samples.apps.topeka com.google.samples.apps.topeka.test / android.support.test.runner.AndroidJUnitRunner    亚行外壳上午仪器-w -e numShards 6 -e shardIndex 2 -e包com.google.samples.apps.topeka com.google.samples.apps.topeka.test / android.support.test.runner.AndroidJUnitRunner    亚行外壳上午仪器-w -e numShards 6 -e shardIndex 3 -e包com.google.samples.apps.topeka com.google.samples.apps.topeka.test / android.support.test.runner.AndroidJUnitRunner    亚行外壳上午仪器-w -e numShards 6 -e shardIndex 4 -e包com.google.samples.apps.topeka com.google.samples.apps.topeka.test / android.support.test.runner.AndroidJUnitRunner    亚行外壳上午仪器-w -e numShards 6 -e shardIndex 5 -e包com.google.samples.apps.topeka com.google.samples.apps.topeka.test / android.support.test.runner.AndroidJUnitRunner}我要修复它,但安装成功,没有超时。I'm trying to get travis-ci to work with my android application. If I only execute assembleDebug it works fine. But I want to run tests too and generate code coverage. This is the config I have right now:language: androidandroid: components: # Uncomment the lines below if you want to # use the latest revision of Android SDK Tools - platform-tools - tools # The BuildTools version used by your project - build-tools-23.0.1 # The SDK version used to compile your project - android-23 # Additional components # - extra-google-google_play_services # - extra-google-m2repository - extra-android-m2repository # - addon-google_apis-google-19 # Specify at least one system image, # if you need to run emulator(s) during your tests - sys-img-armeabi-v7a-android-23env: global: # install timeout in minutes (2 minutes by default) - ADB_INSTALL_TIMEOUT=8before_install: - chmod +x gradlew - pip install --user codecov# Emulator Management: Create, Start and Waitbefore_script: - echo no | android create avd --force --name test --target android-23 --abi armeabi-v7a - emulator -avd test -no-skin -no-audio -no-window -no-boot-anim & - android-wait-for-emulator - adb shell input keyevent 82 &script: - ./gradlew build connectedCheck --stacktrace # - ./gradlew assembleDebugafter_success: - codecovThe build keeps failing with ShellCommandUnresponsiveException, even though I have set the ADB_INSTALL_TIMEOUT global variable to 8 (source). The build itself doesn't even run for 8 minutes, so it's weird why it fails.I tried deleting all the asset files to make the app as small as possible. But that didn't help.The failed builds can be found here: https://travis-ci.org/Longi94/bptf/branches under the travis branch where I was trying to get it work. There was one successful build. I have no idea how it passed.Here's a part of a failed build log:[0K$ echo no | android create avd --force --name test --target android-23 --abi armeabi-v7aAndroid 6.0 is a basic Android platform.Do you wish to create a custom hardware profile [no]Created AVD 'test' based on Android 6.0, ARM (armeabi-v7a) processor,with the following hardware config:hw.cpu.model=cortex-a8hw.lcd.density=240hw.ramSize=512vm.heapSize=48travis_time:end:1030008c:start=1446127538783461373,finish=1446127542625988764,duration=3842527391[0Ktravis_fold:end:before_script.1[0Ktravis_fold:start:before_script.2[0Ktravis_time:start:16b2cef4[0K$ emulator -avd test -no-skin -no-audio -no-window -no-boot-anim &travis_time:end:16b2cef4:start=1446127542630405331,finish=1446127542635242867,duration=4837536[0Ktravis_fold:end:before_script.2[0Ktravis_fold:start:before_script.3[0Ktravis_time:start:00e87790[0K$ android-wait-for-emulatoremulator: WARNING: Increasing RAM size to 1GBWaiting for emulator to startCreating filesystem with parameters: Size: 576716800 Block size: 4096 Blocks per group: 32768 Inodes per group: 7040 Inode size: 256 Journal blocks: 2200 Label: Blocks: 140800 Block groups: 5 Reserved block group size: 39Created filesystem with 11/35200 inodes and 4536/140800 blocksresize2fs 1.42.13 (17-May-2015)The filesystem is already 140800 (4k) blocks long. Nothing to do!Creating filesystem with parameters: Size: 69206016 Block size: 4096 Blocks per group: 32768 Inodes per group: 4224 Inode size: 256 Journal blocks: 1024 Label: Blocks: 16896 Block groups: 1 Reserved block group size: 7Created filesystem with 11/4224 inodes and 1302/16896 blocksemulator: UpdateCheck: current version '24.4.1', last version '24.4.1'Waiting for emulator to start... (pruned due to character limit)Waiting for emulator to startEmulator is readytravis_time:end:00e87790:start=1446127542639319959,finish=1446127617455640922,duration=74816320963[0Ktravis_fold:end:before_script.3[0Ktravis_fold:start:before_script.4[0Ktravis_time:start:0b2fd946[0K$ adb shell input keyevent 82 &travis_time:end:0b2fd946:start=1446127617473299362,finish=1446127617478276750,duration=4977388[0Ktravis_fold:end:before_script.4[0Ktravis_time:start:248749b0[0K$ ./gradlew build connectedCheck --stacktraceDownloading https://services.gradle.org/distributions/gradle-2.2.1-all.zip................................................................................Unzipping /home/travis/.gradle/wrapper/dists/gradle-2.2.1-all/6dibv5rcnnqlfbq9klf8imrndn/gradle-2.2.1-all.zip to /home/travis/.gradle/wrapper/dists/gradle-2.2.1-all/6dibv5rcnnqlfbq9klf8imrndnSet executable permissions for: /home/travis/.gradle/wrapper/dists/gradle-2.2.1-all/6dibv5rcnnqlfbq9klf8imrndn/gradle-2.2.1/bin/gradleDownload https://jcenter.bintray.com/com/android/tools/build/gradle/1.3.0/gradle-1.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/build/gradle-core/1.3.0/gradle-core-1.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/build/builder/1.3.0/builder-1.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/lint/lint/24.3.0/lint-24.3.0.pomDownload https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/5.2.1/proguard-gradle-5.2.1.pomDownload https://jcenter.bintray.com/net/sf/proguard/proguard-parent/5.2.1/proguard-parent-5.2.1.pomDownload https://jcenter.bintray.com/com/android/tools/build/builder-model/1.3.0/builder-model-1.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/build/builder-test-api/1.3.0/builder-test-api-1.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/sdklib/24.3.0/sdklib-24.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/sdk-common/24.3.0/sdk-common-24.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/common/24.3.0/common-24.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/build/manifest-merger/24.3.0/manifest-merger-24.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/24.3.0/ddmlib-24.3.0.pomDownload https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pomDownload https://jcenter.bintray.com/org/sonatype/oss/oss-parent/7/oss-parent-7.pomDownload https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48.pomDownload https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.pomDownload https://jcenter.bintray.com/org/ow2/asm/asm/5.0.3/asm-5.0.3.pomDownload https://jcenter.bintray.com/org/ow2/asm/asm-parent/5.0.3/asm-parent-5.0.3.pomDownload https://jcenter.bintray.com/org/ow2/ow2/1.3/ow2-1.3.pomDownload https://jcenter.bintray.com/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.pomDownload https://jcenter.bintray.com/com/android/tools/jack/jack-api/0.9.0/jack-api-0.9.0.pomDownload https://jcenter.bintray.com/com/android/tools/jill/jill-api/0.9.0/jill-api-0.9.0.pomDownload https://jcenter.bintray.com/com/android/tools/lint/lint-checks/24.3.0/lint-checks-24.3.0.pomDownload https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2.pomDownload https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.2.1/proguard-base-5.2.1.pomDownload https://jcenter.bintray.com/com/android/tools/annotations/24.3.0/annotations-24.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/layoutlib/layoutlib-api/24.3.0/layoutlib-api-24.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/dvlib/24.3.0/dvlib-24.3.0.pomDownload https://jcenter.bintray.com/com/google/code/gson/gson/2.2.4/gson-2.2.4.pomDownload https://jcenter.bintray.com/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.pomDownload https://jcenter.bintray.com/org/apache/commons/commons-parent/33/commons-parent-33.pomDownload https://jcenter.bintray.com/org/apache/apache/13/apache-13.pomDownload https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.pomDownload https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.1.1/httpcomponents-client-4.1.1.pomDownload https://jcenter.bintray.com/org/apache/httpcomponents/project/4.1.1/project-4.1.1.pomDownload https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.pomDownload https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-client/4.1/httpcomponents-client-4.1.pomDownload https://jcenter.bintray.com/com/google/guava/guava/17.0/guava-17.0.pomDownload https://jcenter.bintray.com/com/google/guava/guava-parent/17.0/guava-parent-17.0.pomDownload https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pomDownload https://jcenter.bintray.com/com/android/tools/lint/lint-api/24.3.0/lint-api-24.3.0.pomDownload https://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.pomDownload https://jcenter.bintray.com/com/intellij/annotations/12.0/annotations-12.0.pomDownload https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.pomDownload https://jcenter.bintray.com/org/apache/httpcomponents/httpcomponents-core/4.1/httpcomponents-core-4.1.pomDownload https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pomDownload https://jcenter.bintray.com/org/apache/commons/commons-parent/5/commons-parent-5.pomDownload https://jcenter.bintray.com/org/apache/apache/4/apache-4.pomDownload https://jcenter.bintray.com/commons-codec/commons-codec/1.4/commons-codec-1.4.pomDownload https://jcenter.bintray.com/org/apache/commons/commons-parent/11/commons-parent-11.pomDownload https://jcenter.bintray.com/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.pomDownload https://jcenter.bintray.com/com/android/tools/build/gradle/1.3.0/gradle-1.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/build/gradle-core/1.3.0/gradle-core-1.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/build/builder/1.3.0/builder-1.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/lint/lint/24.3.0/lint-24.3.0.jarDownload https://jcenter.bintray.com/net/sf/proguard/proguard-gradle/5.2.1/proguard-gradle-5.2.1.jarDownload https://jcenter.bintray.com/com/android/tools/build/builder-model/1.3.0/builder-model-1.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/build/builder-test-api/1.3.0/builder-test-api-1.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/sdklib/24.3.0/sdklib-24.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/sdk-common/24.3.0/sdk-common-24.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/common/24.3.0/common-24.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/build/manifest-merger/24.3.0/manifest-merger-24.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/24.3.0/ddmlib-24.3.0.jarDownload https://jcenter.bintray.com/com/squareup/javawriter/2.5.0/javawriter-2.5.0.jarDownload https://jcenter.bintray.com/org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48.jarDownload https://jcenter.bintray.com/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.jarDownload https://jcenter.bintray.com/org/ow2/asm/asm/5.0.3/asm-5.0.3.jarDownload https://jcenter.bintray.com/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.jarDownload https://jcenter.bintray.com/com/android/tools/jack/jack-api/0.9.0/jack-api-0.9.0.jarDownload https://jcenter.bintray.com/com/android/tools/jill/jill-api/0.9.0/jill-api-0.9.0.jarDownload https://jcenter.bintray.com/com/android/tools/lint/lint-checks/24.3.0/lint-checks-24.3.0.jarDownload https://jcenter.bintray.com/org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2.jarDownload https://jcenter.bintray.com/net/sf/proguard/proguard-base/5.2.1/proguard-base-5.2.1.jarDownload https://jcenter.bintray.com/com/android/tools/annotations/24.3.0/annotations-24.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/layoutlib/layoutlib-api/24.3.0/layoutlib-api-24.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/dvlib/24.3.0/dvlib-24.3.0.jarDownload https://jcenter.bintray.com/com/google/code/gson/gson/2.2.4/gson-2.2.4.jarDownload https://jcenter.bintray.com/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jarDownload https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.jarDownload https://jcenter.bintray.com/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.jarDownload https://jcenter.bintray.com/com/google/guava/guava/17.0/guava-17.0.jarDownload https://jcenter.bintray.com/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jarDownload https://jcenter.bintray.com/com/android/tools/lint/lint-api/24.3.0/lint-api-24.3.0.jarDownload https://jcenter.bintray.com/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.jarDownload https://jcenter.bintray.com/com/intellij/annotations/12.0/annotations-12.0.jarDownload https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jarDownload https://jcenter.bintray.com/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jarDownload https://jcenter.bintray.com/commons-codec/commons-codec/1.4/commons-codec-1.4.jarDownload https://jcenter.bintray.com/com/android/tools/external/lombok/lombok-ast/0.2.3/lombok-ast-0.2.3.jarDownload https://jcenter.bintray.com/org/jacoco/org.jacoco.agent/0.7.4.201502262128/org.jacoco.agent-0.7.4.201502262128.pomDownload https://jcenter.bintray.com/org/jacoco/org.jacoco.build/0.7.4.201502262128/org.jacoco.build-0.7.4.201502262128.pomDownload https://jcenter.bintray.com/org/jacoco/org.jacoco.agent/0.7.4.201502262128/org.jacoco.agent-0.7.4.201502262128.jar:app:preBuild UP-TO-DATE:app:preDebugBuild UP-TO-DATE:app:checkDebugManifest:app:preReleaseBuild UP-TO-DATE:app:prepareComAndroidSupportAppcompatV72310Library:app:prepareComAndroidSupportCardviewV72310Library:app:prepareComAndroidSupportDesign2310Library:app:prepareComAndroidSupportRecyclerviewV72310Library:app:prepareComAndroidSupportSupportV42310Library:app:prepareDebugDependencies:app:compileDebugAidl:app:compileDebugRenderscript:app:generateDebugBuildConfig:app:generateDebugAssets UP-TO-DATE:app:mergeDebugAssets:app:generateDebugResValues:app:generateDebugResources:app:mergeDebugResources:app:processDebugManifest:app:processDebugResources:app:generateDebugSources:app:processDebugJavaRes UP-TO-DATE:app:compileDebugJavaWithJavacNote: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.:app:compileDebugNdk UP-TO-DATE:app:compileDebugSources:app:unzipJacocoAgent:app:instrumentDebugDownload https://jcenter.bintray.com/org/jacoco/org.jacoco.ant/0.7.4.201502262128/org.jacoco.ant-0.7.4.201502262128.pomDownload https://jcenter.bintray.com/org/jacoco/org.jacoco.core/0.7.4.201502262128/org.jacoco.core-0.7.4.201502262128.pomDownload https://jcenter.bintray.com/org/jacoco/org.jacoco.report/0.7.4.201502262128/org.jacoco.report-0.7.4.201502262128.pomDownload https://jcenter.bintray.com/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.pomDownload https://jcenter.bintray.com/org/ow2/asm/asm-parent/5.0.1/asm-parent-5.0.1.pomDownload https://jcenter.bintray.com/org/jacoco/org.jacoco.ant/0.7.4.201502262128/org.jacoco.ant-0.7.4.201502262128.jarDownload https://jcenter.bintray.com/org/jacoco/org.jacoco.core/0.7.4.201502262128/org.jacoco.core-0.7.4.201502262128.jarDownload https://jcenter.bintray.com/org/jacoco/org.jacoco.report/0.7.4.201502262128/org.jacoco.report-0.7.4.201502262128.jarDownload https://jcenter.bintray.com/org/ow2/asm/asm-debug-all/5.0.1/asm-debug-all-5.0.1.jar:app:preDexDebug:app:dexDebug:app:validateDebugSigning:app:packageDebug:app:zipalignDebug:app:assembleDebug:app:checkReleaseManifest:app:prepareReleaseDependencies:app:compileReleaseAidl:app:compileReleaseRenderscript:app:generateReleaseBuildConfig:app:generateReleaseAssets UP-TO-DATE:app:mergeReleaseAssets:app:generateReleaseResValues:app:generateReleaseResources:app:mergeReleaseResources:app:processReleaseManifest:app:processReleaseResources:app:generateReleaseSources:app:processReleaseJavaRes UP-TO-DATE:app:compileReleaseJavaWithJavacNote: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.:app:compileReleaseNdk UP-TO-DATE:app:compileReleaseSources:app:preDexRelease:app:dexRelease:app:packageRelease:app:assembleRelease:app:assemble:app:compileLint:app:lintRan lint on variant release: 102 issues foundRan lint on variant debug: 102 issues foundWrote HTML report to file:/home/travis/build/Longi94/bptf/app/build/outputs/lint-results.htmlWrote XML report to /home/travis/build/Longi94/bptf/app/build/outputs/lint-results.xml:app:preDebugUnitTestBuild UP-TO-DATE:app:prepareDebugUnitTestDependencies:app:processDebugUnitTestJavaRes UP-TO-DATE:app:compileDebugUnitTestJavaWithJavac UP-TO-DATE:app:compileDebugUnitTestSources UP-TO-DATE:app:mockableAndroidJar:app:assembleDebugUnitTest:app:testDebugUnitTest:app:preReleaseUnitTestBuild UP-TO-DATE:app:prepareReleaseUnitTestDependencies:app:processReleaseUnitTestJavaRes UP-TO-DATE:app:compileReleaseUnitTestJavaWithJavac UP-TO-DATE:app:compileReleaseUnitTestSources UP-TO-DATE:app:assembleReleaseUnitTest:app:testReleaseUnitTest:app:test:app:check:app:build:app:preDebugAndroidTestBuild UP-TO-DATE:app:prepareDebugAndroidTestDependencies:app:compileDebugAndroidTestAidl:app:processDebugAndroidTestManifest:app:compileDebugAndroidTestRenderscript:app:generateDebugAndroidTestBuildConfig:app:generateDebugAndroidTestAssets UP-TO-DATE:app:mergeDebugAndroidTestAssets:app:generateDebugAndroidTestResValues:app:generateDebugAndroidTestResources:app:mergeDebugAndroidTestResources:app:processDebugAndroidTestResources:app:generateDebugAndroidTestSources:app:processDebugAndroidTestJavaRes UP-TO-DATE:app:compileDebugAndroidTestJavaWithJavac:app:compileDebugAndroidTestNdk UP-TO-DATE:app:compileDebugAndroidTestSources:app:preDexDebugAndroidTest:app:dexDebugAndroidTest:app:packageDebugAndroidTest:app:assembleDebugAndroidTest:app:connectedDebugAndroidTest FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:connectedDebugAndroidTest'.> com.android.builder.testing.api.TestException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.ShellCommandUnresponsiveException* Try:Run with --info or --debug option to get more log output.* Exception is:org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:connectedDebugAndroidTest'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:305) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63) at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51) at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23) at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88) at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62) at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23) at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68) at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62) at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86) at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:80) at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33) at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:36) at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:51) at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237) at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35) at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206) at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33) at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22) at org.gradle.launcher.Main.doAction(Main.java:33) at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54) at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35) at org.gradle.launcher.GradleMain.main(GradleMain.java:23) at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:33) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:130) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)Caused by: org.gradle.internal.UncheckedException: com.android.builder.testing.api.TestException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.ShellCommandUnresponsiveException at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:39) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:66) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:579) at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:562) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) ... 47 moreCaused by: com.android.builder.testing.api.TestException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.ShellCommandUnresponsiveException at com.android.builder.testing.SimpleTestRunner.runTests(SimpleTestRunner.java:93) at com.android.build.gradle.internal.tasks.DeviceProviderInstrumentTestTask.runTests(DeviceProviderInstrumentTestTask.java:112) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63) ... 54 moreCaused by: com.android.builder.testing.api.DeviceException: com.android.ddmlib.ShellCommandUnresponsiveException at com.android.builder.testing.ConnectedDevice.getDeviceConfig(ConnectedDevice.java:259) at com.android.builder.testing.api.DeviceConfigProviderImpl.<init>(DeviceConfigProviderImpl.java:36) at com.android.builder.testing.SimpleTestRunner.runTests(SimpleTestRunner.java:91) ... 56 moreCaused by: com.android.ddmlib.ShellCommandUnresponsiveException at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:511) at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:388) at com.android.ddmlib.Device.executeShellCommand(Device.java:577) at com.android.builder.testing.ConnectedDevice.executeShellCommand(ConnectedDevice.java:136) at com.android.builder.testing.ConnectedDevice.getDeviceConfig(ConnectedDevice.java:256) ... 58 moreBUILD FAILEDTotal time: 3 mins 27.125 secstravis_time:end:248749b0:start=1446127617481908384,finish=1446127825369726746,duration=207887818362[0K[31;1mThe command "./gradlew build connectedCheck --stacktrace" exited with 1.[0mDone. Your build exited with 1.Any help would be appreciated!EDIT after ProbleSlover's suggestion:After removing the platform-tools and tools lines. It seemed like the build didn't wait long enough for the emulator to start previously. Now there is a lot of waiting and the build timeouts with the following error:Waiting for emulator to startTimeout (360 seconds) reached; failed to start emulatorThe command "android-wait-for-emulator" failed and exited with 1 during .Your build has been stopped. 解决方案 You are disabling the boot anim and the android-wait-for-emulator script depends on it, so the default script exits from the loop before the emulator is really ready. Read this great explanation.I wrote about it when the script was bugged hereNow the script works and you only need to delete -no-boot-anim here: - emulator -avd test -no-skin -no-audio -no-window &Alternatively, you can disable the boot animation that speeds up it, but you need to modify the script adding the time you know is enough for your emulator to be ready.Sometimes I do it, like here# Wait for device readyfunction wait-for-device-ready { local bootanim="" local failcounter=0 until [[ "$bootanim" =~ "stopped" ]]; do bootanim=`adb hell getprop init.svc.bootanim 2>&1` echo "$bootanim" if [[ "$bootanim" =~ "not found" ]]; then let "failcounter += 1" if [[ ${failcounter} -gt 30 ]]; then echo "Failed to start emulator" exit 1 fi fi sleep 1 done sleep 30 adb shell input keyevent 82 & sleep 150 echo "Done"}Update: Now that I remember, my response is correct in general but there are other causes that produce this issue, specially on android-23, and it is possible that you still see the same error after use my suggestion, see.I'm not sure about the extra issue about android-23 case, I need investigate it but I'm not currently using Travis-ci, only a phew tests. I think android-23 is not preinstalled and you need update tools and platform-tools, sometimes I see some apps crash when my emulator api 23 starts at home, etc. It's hard to know the reason without see it but you can add logs to try to see what is really happening, inspect my script for that.Update2:Open stackoverflow question and android issue about this error on android-23.Update3:Cause: Hardcoded and too low timeout=5, line 256try { executeShellCommand("am get-config", receiver, 5, TimeUnit.SECONDS); return DeviceConfig.Builder.parse(output);} catch (Exception e) { throw new DeviceException(e);}Error is reproducible locally:08:22:53.761 [ERROR] [org.gradle.BuildExceptionReporter]08:22:53.795 " Caused by: com.android.ddmlib.ShellCommandUnresponsiveException08:22:53.795 " at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:511)08:22:53.795 " at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:388)08:22:53.795 " at com.android.ddmlib.Device.executeShellCommand(Device.java:577)08:22:53.796 " at com.android.builder.testing.ConnectedDevice.executeShellCommand(ConnectedDevice.java:136)08:22:53.796 " at com.android.builder.testing.ConnectedDevice.getDeviceConfig(ConnectedDevice.java:256) <--------08:22:53.796 " ... 78 morePlease star this issue, and read the unity3d workaroundUpdate4:You can use adb as a work around, I tested it works on Travis:#!/bin/bash############ ########### ########## ######### ######## ####### ###### ##### #### ### ## ##### ACIB SCRIPT############## ########### ########## ######### ######## ####### ###### ##### #### ### ## ## Run android testsfunction android-test { adb shell input keyevent 82 & ./gradlew assembleDebug -PdisablePreDex ./gradlew assembleDebugAndroidTest -PdisablePreDex adb install app/build/outputs/apk/app-debug.apk adb install app/build/outputs/apk/app-debug-androidTest-unaligned.apk adb shell pm grant com.google.samples.apps.topeka android.permission.SET_ANIMATION_SCALE adb shell am instrument -w -e numShards 6 -e shardIndex 0 -e package com.google.samples.apps.topeka com.google.samples.apps.topeka.test/android.support.test.runner.AndroidJUnitRunner adb shell am instrument -w -e numShards 6 -e shardIndex 1 -e package com.google.samples.apps.topeka com.google.samples.apps.topeka.test/android.support.test.runner.AndroidJUnitRunner adb shell am instrument -w -e numShards 6 -e shardIndex 2 -e package com.google.samples.apps.topeka com.google.samples.apps.topeka.test/android.support.test.runner.AndroidJUnitRunner adb shell am instrument -w -e numShards 6 -e shardIndex 3 -e package com.google.samples.apps.topeka com.google.samples.apps.topeka.test/android.support.test.runner.AndroidJUnitRunner adb shell am instrument -w -e numShards 6 -e shardIndex 4 -e package com.google.samples.apps.topeka com.google.samples.apps.topeka.test/android.support.test.runner.AndroidJUnitRunner adb shell am instrument -w -e numShards 6 -e shardIndex 5 -e package com.google.samples.apps.topeka com.google.samples.apps.topeka.test/android.support.test.runner.AndroidJUnitRunner}I need to fix it, but the installation is successful, no timeouts. 这篇关于特拉维斯慈构建保持与ShellCommandUnresponsiveException失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-03 15:45