Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

0 test classes found in package 'drawable' Error in Android Studio

I find an issue when running my project in android studio what i see when i try to run is

 0 test classes found in package 'drawable'

 Process finished with exit code -1
 Empty test suite.

Though I have searched for this issue I couldn't find a solution I even tried to invalidate cache and restart the project but still it doesn't works. This issue is only being caused for only this particular project however for a new project i make everything works smooth.

My gradle file

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')
}

My project structure

My project structure

Thanks In advance.

like image 913
1shubhamjoshi1 Avatar asked Oct 02 '16 18:10

1shubhamjoshi1


2 Answers

There is nothing wrong with your project. This is happening because you are trying to run drawable in app. From the drop down select app and then run. It will be OK.

like image 200
Sanjeet Avatar answered Oct 10 '22 06:10

Sanjeet


App Configuration

It's not erroring just misconfigurations. Just select the app and then run. It will be OK.

like image 35
Mayur Sojitra Avatar answered Oct 10 '22 06:10

Mayur Sojitra