【发布时间】:2019-01-08 09:24:33
【问题描述】:
在我的 Android 应用程序中,我想在一个包中排除一些测试用例,以便在 build.gradle 文件中使用 test 任务。例如:
apply plugin: 'com.android.library'
test{
exclude '**/calltest/Summary.class'
}
如果同步项目我得到以下异常:
* What went wrong:
A problem occurred evaluating project ':SdkModule'.
> Could not find method test() for arguments [build_4g3vf7b615x3x1p7i9ty0pt1l$_run_closure1@73d026ca] on project ':SdkModule' of type org.gradle.api.Project.
如果我添加apply plugin : 'java'
CONFIGURE FAILED in 1s
The 'java' plugin has been applied, but it is not compatible with the Android plugins.
请帮帮我。
【问题讨论】:
标签: android build.gradle android-studio-3.0 android-junit