title: java.lang.NoClassDefFoundError: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential
body: <p>I am trying to implement Google Drive in my android Applciation, and getting  <code>java.lang.NoClassDefFoundError: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential 
  </code> error, so anyone who know how to solve this.</p>
  
  <p>I tried still now</p>
  
  <ul>
  <li>Successfully import all the .jar required for Google Drive </li>
  <li>Import Google Play Service Lib. in my project successfully</li>
  <li>Tried to restart eclipse and check but same error is coming</li>
  <li>Got an API key and Client ID from google Drive API or Play service for Android</li>
  <li>Already visit some solution as <a href="https://stackoverflow.com/questions/14372391/java-lang-noclassdeffounderror-com-google-android-gms-rstyleable">here</a></li>
  </ul>
  
  <p>And trying same as <a href="https://developers.google.com/drive/quickstart-java" rel="nofollow noreferrer">Here</a></p>
  
  <p>Here is my Logcat-</p>
  
  <pre><code>    03-21 15:03:55.194: E/AndroidRuntime(940): FATAL EXCEPTION: main
  03-21 15:03:55.194: E/AndroidRuntime(940): java.lang.NoClassDefFoundError: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential
  03-21 15:03:55.194: E/AndroidRuntime(940):  at com.example.alltaskass.GoogleDrive.onCreate(GoogleDrive.java:53)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1700)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1752)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at android.app.ActivityThread.access$1500(ActivityThread.java:123)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:993)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at android.os.Handler.dispatchMessage(Handler.java:99)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at android.os.Looper.loop(Looper.java:126)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at android.app.ActivityThread.main(ActivityThread.java:3997)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at java.lang.reflect.Method.invokeNative(Native Method)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at java.lang.reflect.Method.invoke(Method.java:491)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
  03-21 15:03:55.194: E/AndroidRuntime(940):  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>But still I am stuck for this error,and dont know how to solve this, Please guide me</p>
  
  <p>Thank you in advance</p>