title: Google endpoint framework breaks for Android Studio 3.4 (gradle 5.1.1)
body: <p>I have a project that uses Google App Engine with Android. </p>
  
  <p>I got the following "gradle project sync failed" error after I upgraded to Android Studio 3.4 (gradle 5.1.1).</p>
  
  <p>It was working well prior in the previous android studio version which uses gradle 4.10.1. </p>
  
  <p>Any pointers are welcomed. do tell me if you need me to provide more information</p>
  
  <pre><code>Caused by: java.lang.NoSuchMethodError: org.gradle.api.tasks.SourceSetOutput.getClassesDir()Ljava/io/File;
  at com.google.cloud.tools.gradle.endpoints.framework.server.EndpointsServerPlugin$2$1.execute(EndpointsServerPlugin.java:108)
  at com.google.cloud.tools.gradle.endpoints.framework.server.EndpointsServerPlugin$2$1.execute(EndpointsServerPlugin.java:98)
  </code></pre>
  
  <p>the following is the build.gradle file for the backend module.<br>
  This was after I migrated to GAE V2 using the migration guide (<a href="https://cloud.google.com/endpoints/docs/frameworks/java/migrating-android" rel="nofollow noreferrer">https://cloud.google.com/endpoints/docs/frameworks/java/migrating-android</a>)</p>
  
  <pre><code>buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.google.cloud.tools:endpoints-framework-gradle-plugin:1.0.2'
          classpath 'com.google.cloud.tools:appengine-gradle-plugin:1.3.2'
  
      }
  }
  
  repositories {
      jcenter()
  }
  
  apply plugin: 'java'
  apply plugin: 'war'
  
  apply plugin: 'com.google.cloud.tools.appengine'
  apply plugin: 'com.google.cloud.tools.endpoints-framework-server'
  
  sourceCompatibility = JavaVersion.VERSION_1_8
  targetCompatibility = JavaVersion.VERSION_1_8
  
  dependencies {
  
      // V2: Endpoints Framework v2 migration
      implementation 'com.google.endpoints:endpoints-framework:2.0.9'
      implementation 'javax.inject:javax.inject:1'
      implementation 'javax.servlet:servlet-api:2.5'
  
      implementation 'com.googlecode.objectify:objectify:5.1.9' 
  
  }
  </code></pre>