在我的 Android 应用程序中,我想在一个包中排除一些测试用例,以便我在文件中使用test
任务。build.gradle
例如:
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.
请帮助我。