How to specify different buildTypes in Gradle 3.0.0 beta 4 and later

After updating to Gradle plugin 3.0.0 beta 4 our build failed with the following message: buildTypeMatching has been removed. Use buildTypes..fallbacks Our libraries have release and debug buildTypes, but our app has two additional buildTypes: releaseWithLogs and debugMinified. Snippet of our app Gradle file: android { // … buildTypeMatching ‘releaseWithLogs’, ‘release’ buildTypeMatching ‘debugMinified’, ‘debug’ buildTypes […]