android - NoClassDefFoundErrror with Google Drive -
i've got project had google drive included , working fine. performed upgrade of android sdk , eclipse adt plugin , google drivie no longer works , can't understand why.
i've added drive api project google play services , tick on checkbox export. i've done clean build, i've deleted bin directory of app, restarted eclipse, re-did clean build run section of app should show google account chooser app crashes.
below 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): @ com.google.api.client.googleapis.extensions.android.gms.auth.googleaccountcredential.newchooseaccountintent(googleaccountcredential.java:171)
no matter try doesn't seem make difference appreciated.
update i've tried ticking export option android private libraries raghunandan suggested. of app working such dropbox api included in project still error when google drive part of code executed, noclassdeffounderror.
if tick drive api within order & export tab error dex loader] unable execute dex: multiple dex files define lcom/google/api/client/googleapis/extensions/android/accounts/googleaccountmanager;
looks importing multiple libraries defining class com.google.api.client.googleapis.extensions.android.accounts.googleaccountmanager
. package manager, under android private libraries , try opening .jar files there. find class in @ least 2 of them (one of them might google-api-client-android-1.13.2-beta.jar
).
try excluding 1 of jar files build path. if have no errors, done. if there errors, try excluding other jar file. if errors remain, can try opening jar zip , manually deleting googleaccountmanager.class
file.
Comments
Post a Comment