Hello Emil,
Method org.gradle.api.file.ProjectLayout.fileProperty was removed in gradle v6.0.0 in commit:

  
      github.com/gradle/gradle
  
  
    
  
    
  

  
    
      Remove deprecated ProjectLayout and DefaultTask methods
    

    
      
        committed 
        
          
        
        Aug 7, 2019
      
      

      
        
          
          lptr
        
        
      

      
        
          +24
          -211
        
      
    

  





  
  
    
    
  
  


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/internal/scope/BuildArtifactsHolder.kt 58
At the moment our CI jobs are based on gradle version 4.10.3, but it should also work with gradle 5.*
Please try to build it with gradle 4.10.3+ or  5.*