在Android Studio中的'drawable'包中找到0个测试类

1sh*_*hi1 3 android android-studio

我在android studio中运行我的项目时发现了一个问题,当我尝试运行时,我看到的是

 0 test classes found in package 'drawable'

 Process finished with exit code -1
 Empty test suite.
Run Code Online (Sandbox Code Playgroud)

虽然我已经搜索过这个问题,但我找不到解决方案,我甚至试图使缓存失效并重新启动项目,但它仍然不起作用.这个问题只是针对这个特定的项目引起的,但是对于一个新项目,我会让一切顺利.

我的gradle文件

apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.1"

    defaultConfig {
        applicationId "com.jiit.minor2.shubhamjoshi.human"
        minSdkVersion 17
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),   'proguard-rules.pro'
        }
    }

    packagingOptions {
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE-FIREBASE.txt'
        exclude 'META-INF/NOTICE'
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:24.1.1'
    compile 'com.android.support:recyclerview-v7:+'
    compile 'com.facebook.android:facebook-android-sdk:[4,5)'
    compile 'com.android.support:design:24.1.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'org.jsoup:jsoup:1.8.3'
    compile 'com.firebase:firebase-client-android:2.5.2+'
    compile 'com.github.amlcurran.showcaseview:library:5.4.3'
    compile 'com.firebaseui:firebase-ui:0.3.1'
    compile files('libs/twitter4j-core-4.0.4.jar')
}
Run Code Online (Sandbox Code Playgroud)

我的项目结构

我的项目结构

提前致谢.

San*_*eet 13

您的项目没有任何问题.这种情况正在发生,因为您正试图在应用程序中运行drawable.从下拉选择应用程序然后运行.一切都会安好的.


小智 5

应用配置

这不是错误,只是配置错误。只需选择应用程序,然后运行。一切都会安好的。