This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Use Gradle 4.10.2 (DO NOT use 5.x) | |
2. Use 'com.android.tools.build:gradle:3.3.0' in your project-level build.gradle | |
3. Add this to the very bottom of your app-level build.gradle: | |
gradle.taskGraph.whenReady { taskGraph -> | |
def tasks = taskGraph.getAllTasks() | |
def buildTasks = tasks.find { it.name.startsWith('build') && it.getGroup() == 'build' } | |
if (buildTasks) { | |
tasks.findAll {it.name.startsWith('test')}.each { task -> | |
task.enabled = false |
NewerOlder