title: Auto Backup of my android app not working
body: <p>I am targeting API 23 in my build.gradle. I have allowed backup in my manifest file. I could test auto update using adb shell commands. But auto back up is not happening on its own on my device.I have set "Back up my data" to ON in <code>Settings -&gt; Backup &amp; Reset</code>. Backup account is also set. But backup of my app is not happening.In "Manage Backups" in Google Drive settings, my app is not listed in the apps backed up to Google Drive. I am following other conditions like keeping wi-fi on, phone on charger and keeping it idle.Where am I going wrong? Is it because it's a debug app and not release app? Here are the configs in my <code>build.gradle</code> and <code>manifest</code> files:</p>
  
  <p><strong>Manifest</strong></p>
  
  <pre><code>&lt;application
              android:name=".app.GlobalState"
              android:allowBackup="true"
              android:fullBackupOnly="true"
              android:icon="@drawable/app_icon"
              android:label="@string/app_name"
              android:theme="@style/TripAppTheme"&gt; 
  </code></pre>
  
  <p><strong>build.gradle</strong></p>
  
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 'Google Inc.:Google APIs:24'
      buildToolsVersion "25.0.2"
  
      defaultConfig {
          applicationId "com.spiritapps.android.tripplannerapp"
          minSdkVersion 16
          targetSdkVersion 23
      }
  
      buildTypes {
          release {
              minifyEnabled true
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
          }
  
          applicationVariants.all { variant -&gt;
              variant.outputs.each { output -&gt;
                  output.outputFile = file("$project.buildDir/apk/MyApp.apk")
              }
          }
      }
  }
  
  dependencies {
      compile 'com.android.support:support-v13:25.1.0'
      compile 'com.android.support:appcompat-v7:25.1.0'
      compile 'com.google.android.gms:play-services-auth:10.2.0'
      compile 'com.google.android.gms:play-services-base:10.2.0'
      compile 'com.google.android.gms:play-services-identity:10.2.0'
      compile 'com.google.android.gms:play-services-analytics:10.2.0'
      compile 'com.google.android.gms:play-services-drive:10.2.0'
      compile 'com.google.android.gms:play-services-location:10.2.0'
      compile 'com.google.android.gms:play-services-maps:10.2.0'
      compile 'com.google.android.gms:play-services-ads:10.2.0'
      compile 'com.google.android.gms:play-services-places:10.2.0'
      compile 'joda-time:joda-time:2.2'
  }
  </code></pre>
  
  <p>Also, is <code>wi-fi</code> necessary or data connection will also work?</p>