android-samples icon indicating copy to clipboard operation
android-samples copied to clipboard

Solve Google Drive 401 error for Android release builds

Open qyzhaojinxi opened this issue 6 years ago • 2 comments

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!

qyzhaojinxi avatar Nov 06 '19 02:11 qyzhaojinxi

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 ; }

erpriyesh avatar Sep 24 '20 06:09 erpriyesh

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.

qyzhaojinxi avatar Sep 29 '20 01:09 qyzhaojinxi