Add org.gradle.configureondemand=true to android/gradle.properties
org.gradle.configureondemand=true
android/gradle.properties