I have a project with Google Drive turned on and everything works fine. Then I updated the Android SDK and Eclipse ADT Plugin, and Google Drivie no longer works, and I can’t understand why.
I added the Drive API to my project, as well as to the Google Play services, and put a checkmark on the export. I did a clean build, I deleted the bin directory of my application, restarted eclipse, restarted the clean assembly, but as soon as I started the section of my application that should display the solution for the google account, the application crashes.
Below is the error returned in logcat
05-18 17:17:09.089: E/AndroidRuntime(16747): FATAL EXCEPTION: main 05-18 17:17:09.089: E/AndroidRuntime(16747): java.lang.NoClassDefFoundError: com.google.android.gms.common.AccountPicker 05-18 17:17:09.089: E/AndroidRuntime(16747): at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.newChooseAccountIntent(GoogleAccountCredential.java:171)
No matter what I try to do, it does not matter, so any help would be greatly appreciated.
UPDATE I tried to check the export options for private Android libraries, as suggested by Raghunandan. Most applications work, for example, the Dropbox API, which is also included in the project, but I still get an error when part of the Google Drive code is executed, with NoClassDefFoundError.
If I marked the Drive API in the Order and Export tabs, I get the error message Dex Loader] Unable to execute dex: Multiple dex files define Lcom/google/api/client/googleapis/extensions/android/accounts/GoogleAccountManager;
Boardy
source share