MockableAndroidJar报错
报错日志:
Error:Execution failed for task ':writeaccelerator:mockableAndroidJar'.
> java.lang.NullPointerException (no error message)
解决方案:
在项目根目录的build.gradle中添加:
allprojects {
repositories {
jcenter()
}
gradle.taskGraph.whenReady {
tasks.each { task ->
if (task.name.equals('mockableAndroidJar')) {
task.enabled = false
}
}
}
}
网友评论