1

I have gone through all the solutions mentioned in stackoverflow.

Android ADT & SDK-Tools Version : 23.0.4 Google Play Services : version 20

  1. 'Google-play-services-lib' library project is imported into the workspace and add the library project to main project.

enter image description here

  1. In 'Google-play-services-lib' library project, google-play-services.jars is in

    'libs' folder and it is reflecting in Android-private dependencies.

enter image description here

  1. In Main project, 'Google-play-services-lib' libraray project is added as library project from

    right Click Properties --> Click Android --> add --> added the library project.

Note: All Clean and restart of eclipse is tried out.

Anyone have what's wrong with the dependencies. The google drive classes are not found and getting the following errors.

10-11 02:51:14.640: W/dalvikvm(22107): VFY: unable to resolve interface method 6146: Lcom/google/android/gms/drive/DriveFolder;.getDriveId ()Lcom/google/android/gms/drive/DriveId;
10-11 02:51:14.640: D/dalvikvm(22107): VFY: replacing opcode 0x72 at 0x000f
10-11 02:51:14.645: D/AndroidRuntime(22107): Shutting down VM
10-11 02:51:14.645: W/dalvikvm(22107): threadid=1: thread exiting with uncaught exception (group=0x415262a0)

10-11 02:51:14.650: E/AndroidRuntime(22107): FATAL EXCEPTION: main
    10-11 02:51:14.650: E/AndroidRuntime(22107): java.lang.NoClassDefFoundError: com.google.android.gms.common.GooglePlayServicesUtil
    10-11 02:51:14.650: E/AndroidRuntime(22107):    at com.ss.watsappcomedypic.MainActivity.onCreate(MainActivity.java:23)

Console Error:

Dx bad class file magic (cafebabe) or version (0033.0000) ...while parsing com/google/android/gms/common/internal/safeparcel/a.class ...while processing com/google/android/gms/common/internal/safeparcel/a.class 
Sowmia Sundararajan
  • 1,613
  • 2
  • 14
  • 17
  • I'm curious. Is this a new project? Why are you still using Eclipse? – dannyroa Oct 10 '14 at 21:47
  • add `` to the application in the manifest. You will come to know if the library has been imported properly. – Pr38y Oct 10 '14 at 21:50
  • I have already added that meta-data in android manifest file. – Sowmia Sundararajan Oct 10 '14 at 21:52
  • i m getting tis error in console ... Dx bad class file magic (cafebabe) or version (0033.0000) ...while parsing com/google/android/gms/common/internal/safeparcel/a.class ...while processing com/google/android/gms/common/internal/safeparcel/a.class – Sowmia Sundararajan Oct 10 '14 at 22:13
  • where are you testing this, make sure your testing device has the latest gms update. – ashoke Oct 11 '14 at 06:06
  • i ma facing the same issue. Is there some problem with google play services rev 20? I tried my same code on another PC having google play services rev 19. It is running fine there. can someone help us please? – Rohit Oct 11 '14 at 10:03

1 Answers1

1

Google Play services version 20 needs JDK1.7 or later.

 Eclipse - Preferences - java - compiler - Compiler Compliance level - change from 1.6 to 1.7
Sowmia Sundararajan
  • 1,613
  • 2
  • 14
  • 17