title: How to upload file on google drive using my android application
body: <p>I start with <a href="https://developers.google.com/drive/quickstart-android" rel="noreferrer">google drive sdk</a>. I follows steps which describe in that post.</p>
  <p>But I face problem in <code>Step 3: Create and Configure an Android Project</code></p>
  <p><img src="https://i.stack.imgur.com/3RZCh.png" alt="Add Google APIs" /></p>
  <p>I cant find options in my eclipse so I add plugins for google. After installation of plugins, Eclipse give errors and we now update my SDK also. So for that I update my SDK but now All projects giving me error in eclipse. I cant run any projects. So I use my old SDK back.</p>
  <p>Now I stuck with this How to create Project for Google Drive and how to integrate it.</p>
  <p>I need to upload file from my android application to Google Drive.</p>
  <p>Please help me to find this.</p>
  <p><strong>EDIT</strong></p>
  <p>Now I successfully create project with error free. But when I run project it give me following errors.</p>
  <pre><code> 12-12 11:05:08.788: E/AndroidRuntime(377): java.lang.NoClassDefFoundError: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential
  12-12 11:05:08.788: E/AndroidRuntime(377):  at com.rarenoice.screen.MainActivity.onCreate(MainActivity.java:42)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at android.app.ActivityThread.access$2300(ActivityThread.java:125)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at android.os.Handler.dispatchMessage(Handler.java:99)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at android.os.Looper.loop(Looper.java:123)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at android.app.ActivityThread.main(ActivityThread.java:4627)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at java.lang.reflect.Method.invokeNative(Native Method)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at java.lang.reflect.Method.invoke(Method.java:521)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  12-12 11:05:08.788: E/AndroidRuntime(377):  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  <p>At Following line :-</p>
  <pre><code>private GoogleAccountCredential credential;
   credential = GoogleAccountCredential.usingOAuth2(MainActivity.this,
                  DriveScopes.DRIVE);
  </code></pre>