Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Solve Google Drive 401 error for Android release builds #125

Open
qyzhaojinxi opened this issue Nov 6, 2019 · 2 comments
Open

Solve Google Drive 401 error for Android release builds #125

qyzhaojinxi opened this issue Nov 6, 2019 · 2 comments
Labels

Comments

@qyzhaojinxi
Copy link

Please add following proguard text required in your docs and demos:

#Fix OAuth Drive API failure for release builds
-keep class * extends com.google.api.client.json.GenericJson { ; }
-keep class com.google.api.services.drive.
* { *; }
-keepclassmembers class * { @com.google.api.client.util.Key ; }

No Thanks!

@sqrrrl sqrrrl added the bug label Dec 3, 2019
@erpriyesh
Copy link

erpriyesh commented Sep 24, 2020

Please add this following line of code in you proguard-rules.pro

-keep class com.google.api.services.drive.model.** { ;}
-keep class * extends com.google.api.client.json.GenericJson { ; }
-keep class com.google.api.services.drive.
{ *; }
-keepclassmembers class * { @com.google.api.client.util.Key ; }

@qyzhaojinxi
Copy link
Author

thank you. I have no idea if they have add this to their docs and demos. I had been stucked for a long time last year.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants