-x :app:mockableAndroidJar解决办法

1.Go to File -> Settings -> Build, Execution, Deployment -> Compiler
2.Add to "Command-line Options":
-x :app:mockableAndroidJar
3.Press "OK" and try to Rebuild Project again.

或者

allprojects {
    repositories {
        jcenter()
    }
        /**防止调用过时的mockableAndroidJar报错**/
    gradle.taskGraph.whenReady {
        tasks.each { task ->
            if (task.name.equals('mockableAndroidJar')) {
                task.enabled = false
            }
        }
    }
}

你可能感兴趣的:(-x :app:mockableAndroidJar解决办法)