title: Cannot run backend in Android Studio
body: <p><strong>Update</strong>
  <em>After some digging I found out that this is a bug. It will be fixed in the following update of Android Studio: 1.0 RC3</em></p>
  
  <p>I am checking out backend for the first time in Android Studio, I'm following this video tutorial:
  <a href="https://cloud.google.com/mobile/" rel="nofollow">https://cloud.google.com/mobile/</a></p>
  
  <p>I added a backend module to my AS project with "App Engine Java Endpoints Module".
  The project shows no errors, can build and I tried syncing with gradle a few times.</p>
  
  <p>However this keeps popping up:</p>
  
  <p><strong>App Engine Gradle configuration not detected on module, maybe you need to Sync Project with Gradle.</strong></p>
  
  <p>Could this be a bug or am I missing something?</p>
  
  <p><strong>Project level gradle:</strong></p>
  
  <pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.
  
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:1.0.0-rc1'
  
          // NOTE: Do not place your application dependencies here; they belong
          // in the individual module build.gradle files
      }
  }
  
  allprojects {
      repositories {
          jcenter()
      }
  }
  </code></pre>
  
  <p><strong>App gradle:</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 21
      buildToolsVersion "21.1.1"
  
      defaultConfig {
          applicationId "be.thomascbeerten.cloudtest2"
          minSdkVersion 15
          targetSdkVersion 21
          versionCode 1
          versionName "1.0"
      }
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_7
          targetCompatibility JavaVersion.VERSION_1_7
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
  }
  
  dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      compile 'com.android.support:appcompat-v7:21.0.2'
      compile project(path: ':backend', configuration: 'android-endpoints')
  }
  </code></pre>
  
  <p><strong>backend gradle:</strong></p>
  
  <pre><code>// If you would like more information on the gradle-appengine-plugin please refer to the github page
  // https://github.com/GoogleCloudPlatform/gradle-appengine-plugin
  
  buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath 'com.google.appengine:gradle-appengine-plugin:1.9.14'
      }
  }
  
  repositories {
      mavenCentral();
  }
  
  apply plugin: 'java'
  apply plugin: 'war'
  apply plugin: 'appengine'
  
  sourceCompatibility = JavaVersion.VERSION_1_7
  targetCompatibility = JavaVersion.VERSION_1_7
  
  dependencies {
      appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.14'
      compile 'com.google.appengine:appengine-endpoints:1.9.14'
      compile 'com.google.appengine:appengine-endpoints-deps:1.9.14'
      compile 'javax.servlet:servlet-api:2.5'
  }
  
  appengine {
      downloadSdk = true
      appcfg {
          oauth2 = true
      }
      endpoints {
          getClientLibsOnBuild = true
          getDiscoveryDocsOnBuild = true
      }
  }
  </code></pre>