Solved by IvanKobzarev in post #2 
              
              
                Hello Emil, 
Method org.gradle.api.file.ProjectLayout.fileProperty was removed in gradle v6.0.0 in commit: 
 
 
But it is still used in gradle android plugin: 
https://android.googlesource.com/platform/tools/base/+/studio-master-dev/build-system/gradle-core/src/main/java/com/android/build/gradle/int…