title: The method setJsonHttpRequestInitializer is undefined for the type Drive.Builder Android
body: <p>I am creating an application to working with Google Drive on Android.</p>
  
  <p>I've searched in internet for a few examples, but they all are the same. I'm getting the following error:</p>
  
  <pre><code>Object Drive.Builder does not have method setJsonHttpRequestInitializer.
  </code></pre>
  
  <p>I have tested with Google drive API V1 and V2 without luck.</p>
  
  <p>Where is the problem?</p>
  
  <p>Source:</p>
  
  <pre><code>private Drive getDriveService(String accountName) {
  
     HttpTransport ht = AndroidHttp.newCompatibleTransport();                     
     JacksonFactory jf = new JacksonFactory();          
     Credential credential = new Credential(BearerToken.authorizationHeaderAccessMethod()).setAccessToken(accountName);           
  
          Drive.Builder b = new Drive.Builder(ht, jf, null);
          b.setJsonHttpRequestInitializer(new JsonHttpRequestInitializer() {
  
              @Override
              public void initialize(JsonHttpRequest request) throws IOException {
                  DriveRequest driveRequest = (DriveRequest) request;
                  driveRequest.setPrettyPrint(true);
                  driveRequest.setOauthToken(accountName);
                  driveRequest.setKey(API_KEY);
              }
          });
          return b.build();
  } 
  </code></pre>
  
  <p>Found that setJsonHttpRequestInitializer method is undefined if use google-api-java-client-1.12.0-beta</p>
  
  <p>Downloaded and imported google-api-java-client-1.11.0-beta</p>
  
  <p>But now getting:
  Using Client ID for installed applications: Client ID.</p>
  
  <pre><code>com.google.api.client.http.HttpResponseException: 403 Forbidden
   {
    "error": {
     "errors": [
      {
       "domain": "usageLimits",
       "reason": "accessNotConfigured",
       "message": "Access Not Configured"
      }
     ],
     "code": 403,
     "message": "Access Not Configured"
    }
   }
  </code></pre>
  
  <p>Using Simple API Access: API key</p>
  
  <pre><code>Exceptioncom.google.api.client.googleapis.json.GoogleJsonResponseException: 401 Unauthorized
  {
    "code" : 401,
    "errors" : [ {
      "domain" : "global",
      "location" : "Authorization",
      "locationType" : "header",
      "message" : "Invalid Credentials",
      "reason" : "authError"
    } ],
    "message" : "Invalid Credentials"
  }
  </code></pre>
  
  <p>Here is project sources:</p>
  
  <p><a href="http://www.sendspace.com/file/an6xxy" rel="nofollow">http://www.sendspace.com/file/an6xxy</a></p>
  
  <p>What is wrong, maybe something with Certificate fingerprint (SHA1)?</p>
  
  <p>Trying calendar-android-sample from google.</p>
  
  <p>Looks like i have problems with register app in google api console.</p>
  
  <p>Where to put client id which i get in sample?</p>
  
  <p>After run sample in debug mode in android, getting "access not configured".</p>