Dependency ignored because of conflict Android studio

You can exclude dependencies in the build.gradle file of your module. compile(‘com.google.apis:google-api-services-drive:v2-rev170-1.20.0’) { exclude module: ‘httpclient’ //by artifact name exclude group: ‘org.apache.httpcomponents’ //by group exclude group: ‘org.apache.httpcomponents’, module: ‘httpclient’ //by both name and group }

Can someone provide an up-to-date Android guide for Google Drive REST API v3?

Before answering this question I want you to know that I got the code from here (https://ammar.lanui.online/integrate-google-drive-rest-api-on-android-app-bc4ddbd90820) and the documentation from Google was not much helpful for me. So this solution is from limited resources available to me. I need the drive to upload and download files from my app. In drive I have to … Read more

How to delete a file on google drive using Google Drive Android API

UPDATE (April 2015) GDAA finally has it’s own ‘trash’ functionality rendering the answer below IRRELEVANT. ORIGINAL ANSWER: As Cheryl mentioned above, you can combine these two APIs. The following code snippet, taken from here, shows how it can be done: First, gain access to both GoogleApiClient, and …services.drive.Drive GoogleApiClient _gac; com.google.api.services.drive.Drive _drvSvc; public void init(MainActivity … Read more

cannot get folderId that i just created on google drive

Do not mix DriveId with ResourceId. Both look like strings, but DriveId is different from ResourceId. See SO 21800257. Also, ResourceId is not immediately available, see SO 22874657. DriveId usually looks like: “DriveId:CAESHDBCMW1RVblahblahblahblahMYjAUgssy8yYFRTTNKRU55” whereas ResourceId is more like: “UW2ablahblaghblahNy00Ums0B1mQ” UPDATE: Since so many developers fight this issue, I’ll try to elaborate as deep as my … Read more

Unpredictable result of DriveId.getResourceId() in Google Drive Android API

UPDATE (07/22/2015) Thanks to the prompt response from Steven Bazyl (see comments below), I finally have a satisfactory solution using Completion Events. Here are two minified code snippets that deliver the ResourceId to the app as soon as the newly created file is propagated to the Drive: File creation, add change subscription: public class CreateEmptyFileActivity … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)