0

In my application I have integrated google drive api for file upload.its working well before signing apk.But after signing apk getting file upload error.

    05-10 11:35:08.358: E/GooglePlayServicesUtil(16529): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
05-10 11:35:08.448: W/GLSUser(1008): GoogleAccountDataService.getToken()
05-10 11:35:09.118: W/System.err(16529): com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthIOException
05-10 11:35:09.118: W/System.err(16529):    at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential$RequestHandler.intercept(GoogleAccountCredential.java:286)
05-10 11:35:09.118: W/System.err(16529):    at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:858)
05-10 11:35:09.118: W/System.err(16529):    at com.google.api.client.googleapis.media.MediaHttpUploader.executeCurrentRequest(MediaHttpUploader.java:559)
05-10 11:35:09.118: W/System.err(16529):    at com.google.api.client.googleapis.media.MediaHttpUploader.executeCurrentRequestWithBackOffAndGZip(MediaHttpUploader.java:581)

I have created new client id A app console.everything works fine before signing. is there any solution?

yuva ツ
  • 3,653
  • 9
  • 44
  • 78
  • You should have an API Key for your debug certificate and an API key for your release certificate. Can you confirm if you are using the proper API key? – Gary Schreiner May 10 '14 at 06:05
  • not getting you exactly.what should i do?I have use sha1 key which is there in android -prefernce-android-build – yuva ツ May 10 '14 at 06:07
  • in your manifest, you assign your API key, on your google developers console you have to set allowed apps for an api key you generate. This uses the release signing certificates fingerprint to say what apps are allowed. You have to generate an API key there, and attach your certificate's thumbprint to it, then put it in your manifest. Once you do that, your signed app will be authorized to use the drive api – Gary Schreiner May 10 '14 at 06:11
  • can you give me example – yuva ツ May 10 '14 at 06:13
  • 1
    Use this answer for help, they've already written it down: http://stackoverflow.com/a/13543366/3593310 ... tl;dr is go to api console and register your api with your SHA1 fingerprint you used to sign your app and make sure it has the proper package name. – Gary Schreiner May 10 '14 at 06:30
  • I have followed same..but still getting same error after signing apk – yuva ツ May 10 '14 at 07:11
  • Tried again..working now.thanx – yuva ツ May 10 '14 at 08:54
  • You're welcome, glad I could help. – Gary Schreiner May 10 '14 at 08:56

0 Answers0