Well am using eclipse to make an android app which accesses google calendar API am getting a NoClassDefFoundError Exception whenever i tried to execute this method
private void setupCalendarConnection(final String accessToken) throws IOException {
HttpTransport transport = AndroidHttp.newCompatibleTransport();// Here where the exception
GoogleCredential googleCredential = new GoogleCredential().setAccessToken(accessToken);
JacksonFactory jacksonFactory = new JacksonFactory();
also i tried to replace it with
HttpTransport transport = new NetHttpTransport () ;
and i got the same error
05-07 20:08:04.513: E/AndroidRuntime(781): java.lang.NoClassDefFoundError: com.google.api.client.extensions.android2.AndroidHttp
From my knowledge in Java.. This exception means that the class am trying to access is not defined by classLoader ALTHOUGH i checked the dependencies and JAR files included and it is included and imported
So any clue about how can i solve this problem Thank you in advance..
Eclipse 3.7 Indigo --- Google-java-client-api 1.8----Android ICS(4.0.3) Api lvl 15