Gradle plugin 3.0.0 beta 4: “buildTypeMatching foi removido. Use buildTypes. <name> .fallbacks ”

Após a atualização para o plugin Gradle 3.0.0 beta 4, nossa compilação falhou com a seguinte mensagem:

buildTypeMatching foi removido. Use buildTypes. <name> .fallbacks

Nossas bibliotecas têmrelease edebug buildTypes, mas nosso aplicativo tem dois adicionaisbuildTypes: 'releaseWithLogs' e 'debugMinified'.

Trecho do nossoaplicativo Arquivo Gradle:

android {
    // ...
    buildTypeMatching 'releaseWithLogs', 'release'
    buildTypeMatching 'debugMinified', 'debug'

    buildTypes {
        debug {
            // ...
        }
        debugMinified {
            // ...
        }
        release {
            // ...
        }
        releaseWithLogs {
            // ...
        }
    }
}

questionAnswers(1)

yourAnswerToTheQuestion