1
votes

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 
1
I'm curious. Is this a new project? Why are you still using Eclipse? - dannyroa
add <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> to the application in the manifest. You will come to know if the library has been imported properly. - Pr38y
I have already added that meta-data in android manifest file. - sowmia
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
where are you testing this, make sure your testing device has the latest gms update. - ashoke

1 Answers

1
votes

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

 Eclipse - Preferences - java - compiler - Compiler Compliance level - change from 1.6 to 1.7