title: com.android.builder.testing.ConnectedDevice > hasTests[test(AVD) - 5.0] FAILED
body: <p>i have try my best to test my android project with gradle on, but failed.
      can you help me with it?Thank you.
      This is my project:
  <a href="https://github.com/SnowdreamFramework/android-log">https://github.com/SnowdreamFramework/android-log</a>
     and i provide my error log with the attachment.</p>
  
  <pre><code>[0K$ echo no | android create avd --force -n test -t android-21 --abi armeabi-v7a
  Android 5.0 is a basic Android platform.
  Do you wish to create a custom hardware profile [no]Created AVD 'test' based on Android 5.0, ARM (armeabi-v7a) processor,
  with the following hardware config:
  hw.cpu.model=cortex-a8
  hw.lcd.density=240
  hw.ramSize=512
  vm.heapSize=48
  travis_time:end:0d68df50:start=1416651329874810477,finish=1416651333337412612,duration=3462602135
  [0Ktravis_fold:end:before_script.4
  [0Ktravis_fold:start:before_script.5
  [0Ktravis_time:start:15d80c70
  [0K$ emulator -avd test -no-skin -no-audio -no-window &amp;
  travis_time:end:15d80c70:start=1416651333347425441,finish=1416651333353869405,duration=6443964
  [0Ktravis_fold:end:before_script.5
  [0Ktravis_fold:start:before_script.6
  [0Ktravis_time:start:01e4ff4d
  [0K$ android-wait-for-emulator
  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: 7
  Created filesystem with 11/4224 inodes and 1302/16896 blocks
  Waiting for emulator to start
  Failed to Initialize backend EGL display
  emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Waiting for emulator to start
  Emulator is ready
  travis_time:end:01e4ff4d:start=1416651333362333914,finish=1416651367641918931,duration=34279585017
  [0Ktravis_fold:end:before_script.6
  [0Ktravis_fold:start:before_script.7
  [0Ktravis_time:start:1f99871a
  [0K$ adb shell input keyevent 82 &amp;
  travis_time:end:1f99871a:start=1416651367652665093,finish=1416651367659437822,duration=6772729
  [0Ktravis_fold:end:before_script.7
  [0Ktravis_time:start:0e5eb826
  [0K$ TERM=dumb gradle build connectedCheck
  Download https://repo1.maven.org/maven2/com/android/tools/build/gradle/0.13.3/gradle-0.13.3.pom
  Download https://repo1.maven.org/maven2/net/sf/proguard/proguard-gradle/4.11/proguard-gradle-4.11.pom
  Download https://repo1.maven.org/maven2/net/sf/proguard/proguard-parent/4.11/proguard-parent-4.11.pom
  Download https://repo1.maven.org/maven2/com/android/tools/lint/lint/23.1.3/lint-23.1.3.pom
  Download https://repo1.maven.org/maven2/com/android/tools/build/builder/0.13.3/builder-0.13.3.pom
  Download https://repo1.maven.org/maven2/net/sf/proguard/proguard-base/4.11/proguard-base-4.11.pom
  Download https://repo1.maven.org/maven2/com/android/tools/lint/lint-checks/23.1.3/lint-checks-23.1.3.pom
  Download https://repo1.maven.org/maven2/org/eclipse/jdt/core/compiler/ecj/4.2.2/ecj-4.2.2.pom
  Download https://repo1.maven.org/maven2/com/android/tools/ddms/ddmlib/23.1.3/ddmlib-23.1.3.pom
  Download https://repo1.maven.org/maven2/com/android/tools/build/builder-model/0.13.3/builder-model-0.13.3.pom
  Download https://repo1.maven.org/maven2/com/android/tools/sdk-common/23.1.3/sdk-common-23.1.3.pom
  Download https://repo1.maven.org/maven2/com/android/tools/build/manifest-merger/23.1.3/manifest-merger-23.1.3.pom
  Download https://repo1.maven.org/maven2/com/android/tools/build/builder-test-api/0.13.3/builder-test-api-0.13.3.pom
  Download https://repo1.maven.org/maven2/com/android/tools/common/23.1.3/common-23.1.3.pom
  Download https://repo1.maven.org/maven2/com/squareup/javawriter/2.5.0/javawriter-2.5.0.pom
  Download https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
  Download https://repo1.maven.org/maven2/org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48.pom
  Download https://repo1.maven.org/maven2/com/android/tools/sdklib/23.1.3/sdklib-23.1.3.pom
  Download https://repo1.maven.org/maven2/com/android/tools/lint/lint-api/23.1.3/lint-api-23.1.3.pom
  Download https://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/4.0/asm-analysis-4.0.pom
  Download https://repo1.maven.org/maven2/org/ow2/asm/asm-parent/4.0/asm-parent-4.0.pom
  Download https://repo1.maven.org/maven2/org/ow2/ow2/1.3/ow2-1.3.pom
  Download https://repo1.maven.org/maven2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.pom
  Download https://repo1.maven.org/maven2/kxml2/kxml2/2.3.0/kxml2-2.3.0.pom
  Download https://repo1.maven.org/maven2/com/google/guava/guava/15.0/guava-15.0.pom
  Download https://repo1.maven.org/maven2/com/google/guava/guava-parent/15.0/guava-parent-15.0.pom
  Download https://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.pom
  Download https://repo1.maven.org/maven2/com/android/tools/layoutlib/layoutlib-api/23.1.3/layoutlib-api-23.1.3.pom
  Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.pom
  Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.1.1/httpcomponents-client-4.1.1.pom
  Download https://repo1.maven.org/maven2/org/apache/httpcomponents/project/4.1.1/project-4.1.1.pom
  Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.pom
  Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.1/httpcomponents-client-4.1.pom
  Download https://repo1.maven.org/maven2/com/android/tools/dvlib/23.1.3/dvlib-23.1.3.pom
  Download https://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.pom
  Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/33/commons-parent-33.pom
  Download https://repo1.maven.org/maven2/org/apache/apache/13/apache-13.pom
  Download https://repo1.maven.org/maven2/org/ow2/asm/asm/4.0/asm-4.0.pom
  Download https://repo1.maven.org/maven2/com/android/tools/external/lombok/lombok-ast/0.2.2/lombok-ast-0.2.2.pom
  Download https://repo1.maven.org/maven2/org/ow2/asm/asm-tree/4.0/asm-tree-4.0.pom
  Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.pom
  Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.1/httpcomponents-core-4.1.pom
  Download https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom
  Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/5/commons-parent-5.pom
  Download https://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
  Download https://repo1.maven.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.pom
  Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/11/commons-parent-11.pom
  Download https://repo1.maven.org/maven2/com/android/tools/build/gradle/0.13.3/gradle-0.13.3.jar
  Download https://repo1.maven.org/maven2/net/sf/proguard/proguard-gradle/4.11/proguard-gradle-4.11.jar
  Download https://repo1.maven.org/maven2/com/android/tools/lint/lint/23.1.3/lint-23.1.3.jar
  Download https://repo1.maven.org/maven2/com/android/tools/build/builder/0.13.3/builder-0.13.3.jar
  Download https://repo1.maven.org/maven2/net/sf/proguard/proguard-base/4.11/proguard-base-4.11.jar
  Download https://repo1.maven.org/maven2/com/android/tools/lint/lint-checks/23.1.3/lint-checks-23.1.3.jar
  Download https://repo1.maven.org/maven2/org/eclipse/jdt/core/compiler/ecj/4.2.2/ecj-4.2.2.jar
  Download https://repo1.maven.org/maven2/com/android/tools/ddms/ddmlib/23.1.3/ddmlib-23.1.3.jar
  Download https://repo1.maven.org/maven2/com/android/tools/build/builder-model/0.13.3/builder-model-0.13.3.jar
  Download https://repo1.maven.org/maven2/com/android/tools/sdk-common/23.1.3/sdk-common-23.1.3.jar
  Download https://repo1.maven.org/maven2/com/android/tools/build/manifest-merger/23.1.3/manifest-merger-23.1.3.jar
  Download https://repo1.maven.org/maven2/com/android/tools/build/builder-test-api/0.13.3/builder-test-api-0.13.3.jar
  Download https://repo1.maven.org/maven2/com/android/tools/common/23.1.3/common-23.1.3.jar
  Download https://repo1.maven.org/maven2/com/squareup/javawriter/2.5.0/javawriter-2.5.0.jar
  Download https://repo1.maven.org/maven2/org/bouncycastle/bcpkix-jdk15on/1.48/bcpkix-jdk15on-1.48.jar
  Download https://repo1.maven.org/maven2/com/android/tools/sdklib/23.1.3/sdklib-23.1.3.jar
  Download https://repo1.maven.org/maven2/com/android/tools/lint/lint-api/23.1.3/lint-api-23.1.3.jar
  Download https://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/4.0/asm-analysis-4.0.jar
  Download https://repo1.maven.org/maven2/net/sf/kxml/kxml2/2.3.0/kxml2-2.3.0.jar
  Download https://repo1.maven.org/maven2/com/google/guava/guava/15.0/guava-15.0.jar
  Download https://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/1.48/bcprov-jdk15on-1.48.jar
  Download https://repo1.maven.org/maven2/com/android/tools/layoutlib/layoutlib-api/23.1.3/layoutlib-api-23.1.3.jar
  Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.1.1/httpclient-4.1.1.jar
  Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpmime/4.1/httpmime-4.1.jar
  Download https://repo1.maven.org/maven2/com/android/tools/dvlib/23.1.3/dvlib-23.1.3.jar
  Download https://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar
  Download https://repo1.maven.org/maven2/org/ow2/asm/asm/4.0/asm-4.0.jar
  Download https://repo1.maven.org/maven2/com/android/tools/external/lombok/lombok-ast/0.2.2/lombok-ast-0.2.2.jar
  Download https://repo1.maven.org/maven2/org/ow2/asm/asm-tree/4.0/asm-tree-4.0.jar
  Download https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore/4.1/httpcore-4.1.jar
  Download https://repo1.maven.org/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
  Download https://repo1.maven.org/maven2/commons-codec/commons-codec/1.4/commons-codec-1.4.jar
  Sonatype SNAPSHOT BUILD
  GITHUB SNAPSHOT BUILD
  Download https://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.pom
  Download https://repo1.maven.org/maven2/org/apache/commons/commons-parent/22/commons-parent-22.pom
  Download https://repo1.maven.org/maven2/org/apache/apache/9/apache-9.pom
  Download https://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1.jar
  :lib:androidJavadocsJar
  :lib:compileLint
  :lib:copyReleaseLint UP-TO-DATE
  :lib:mergeReleaseProguardFiles
  :lib:preBuild
  :lib:preReleaseBuild
  :lib:checkReleaseManifest
  :lib:prepareReleaseDependencies
  :lib:compileReleaseAidl
  :lib:compileReleaseRenderscript
  :lib:generateReleaseBuildConfig
  :lib:generateReleaseAssets UP-TO-DATE
  :lib:mergeReleaseAssets
  :lib:generateReleaseResValues
  :lib:generateReleaseResources
  :lib:packageReleaseResources
  :lib:processReleaseManifest
  :lib:processReleaseResources
  :lib:generateReleaseSources
  :lib:compileReleaseJava
  :lib:processReleaseJavaRes UP-TO-DATE
  :lib:packageReleaseJar
  :lib:compileReleaseNdk
  :lib:packageReleaseJniLibs UP-TO-DATE
  :lib:packageReleaseLocalJar UP-TO-DATE
  :lib:packageReleaseRenderscript UP-TO-DATE
  :lib:bundleRelease
  :lib:assembleRelease
  :lib:androidReleaseJar
  :lib:androidSourcesJar
  :lib:copyDebugLint UP-TO-DATE
  :lib:mergeDebugProguardFiles
  :lib:preDebugBuild
  :lib:checkDebugManifest
  :lib:prepareDebugDependencies
  :lib:compileDebugAidl
  :lib:compileDebugRenderscript
  :lib:generateDebugBuildConfig
  :lib:generateDebugAssets UP-TO-DATE
  :lib:mergeDebugAssets
  :lib:generateDebugResValues
  :lib:generateDebugResources
  :lib:packageDebugResources
  :lib:processDebugManifest
  :lib:processDebugResources
  :lib:generateDebugSources
  :lib:compileDebugJava
  :lib:processDebugJavaRes UP-TO-DATE
  :lib:packageDebugJar
  :lib:compileDebugNdk
  :lib:packageDebugJniLibs UP-TO-DATE
  :lib:packageDebugLocalJar UP-TO-DATE
  :lib:packageDebugRenderscript UP-TO-DATE
  :lib:bundleDebug
  :lib:assembleDebug
  :lib:signArchives
  :lib:assemble
  :lib:lint
  Ran lint on variant release: 7 issues found
  Ran lint on variant debug: 7 issues found
  Wrote HTML report to file:/home/travis/build/SnowdreamFramework/android-log/lib/build/outputs/lint-results.html
  Wrote XML report to /home/travis/build/SnowdreamFramework/android-log/lib/build/outputs/lint-results.xml
  :lib:check
  :lib:build
  :lib:compileDebugTestNdk
  :lib:preDebugTestBuild
  :lib:prepareDebugTestDependencies
  :lib:compileDebugTestAidl
  :lib:processDebugTestManifest
  :lib:compileDebugTestRenderscript
  :lib:generateDebugTestBuildConfig
  :lib:generateDebugTestAssets UP-TO-DATE
  :lib:mergeDebugTestAssets
  :lib:generateDebugTestResValues
  :lib:generateDebugTestResources
  :lib:mergeDebugTestResources
  :lib:processDebugTestResources
  :lib:generateDebugTestSources
  :lib:compileDebugTestJava
  :lib:preDexDebugTest
  :lib:dexDebugTest
  :lib:processDebugTestJavaRes UP-TO-DATE
  :lib:validateDebugSigning
  :lib:packageDebugTest
  :lib:assembleDebugTest
  :lib:connectedAndroidTest
  Tests on test(AVD) - 5.0 failed: No test results
  
  com.android.builder.testing.ConnectedDevice &gt; hasTests[test(AVD) - 5.0] [31mFAILED [0m
  No tests found.
  :lib:connectedAndroidTest FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':lib:connectedAndroidTest'.
  &gt; There were failing tests. See the report at: file:///home/travis/build/SnowdreamFramework/android-log/lib/build/outputs/reports/androidTests/connected/index.html
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  BUILD FAILED
  
  Total time: 1 mins 23.514 secs
  travis_time:end:0e5eb826:start=1416651367667280733,finish=1416651451763431060,duration=84096150327
  [0K
  [31;1mThe command "TERM=dumb gradle build connectedCheck" exited with 1.[0m
  
  Done. Your build exited with 1.
  </code></pre>