gpt4 book ai didi

android - 在 Android Studio 中的包 'drawable' 错误中找到 0 个测试类

转载 作者:太空宇宙 更新时间:2023-11-03 11:32:51 27 4
gpt4 key购买 nike

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

 0 test classes found in package 'drawable'

Process finished with exit code -1
Empty test suite.

虽然我已经搜索过这个问题,但我找不到解决方案,我什至尝试使缓存无效并重新启动项目,但它仍然不起作用。此问题仅针对此特定项目引起,但是对于新项目,我使一切顺利进行。

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

我的项目结构

My project structure

提前致谢。

最佳答案

您的项目没有任何问题。发生这种情况是因为您试图在应用程序中运行可绘制对象。从下拉列表中选择应用程序,然后运行。会好的。

关于android - 在 Android Studio 中的包 'drawable' 错误中找到 0 个测试类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39820193/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com