I am getting the same error. I am using Maven, something is mucked up with the poms if this class cannot be found. Any solution so far?
On Friday, March 22, 2013 1:03:45 PM UTC-6, F.Per wrote: > > Hi > > im trying to use oAuth2 with the webServerClient connection, and i get a > "java.lang.ClassNotFoundException: > com.google.api.client.util.Preconditions" when executing the following code: > > [code] > GoogleAuthorizationCodeFlow authorizationFlow = new > GoogleAuthorizationCodeFlow.Builder( > new NetHttpTransport(), > new JacksonFactory(), > CLIENT_ID, > CLIENT_SECRET, > Lists.newArrayList(SCOPE)) > .setApprovalPrompt("force") > // Set the access type to offline so that the token can be > refreshed. > .setAccessType("offline").build(); > [/code] > > Can anybody tell me why or what code to use instead because i do have the > access to the package com.google.api.client.util. but there really is no > such class called Preconditions. > > greez > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.