How to fix Proguard issue with Google Drive REST API

后端 未结 3 805
一向
一向 2021-01-14 15:14

I\'m using the Google Rest API v3 to connect my android app to Google Drive. When I run without Proguard (minifyEnabled=false), all is well. However, when I enable proguard

3条回答
  •  [愿得一人]
    2021-01-14 15:55

    This one worked for me:

    -keepclassmembers class * {
      @com.google.api.client.util.Key ;
    }
    

    As seen in the official google sample:

    https://github.com/google/google-api-java-client-samples/blob/master/tasks-android-sample/proguard-google-api-client.txt

提交回复
热议问题