【发布时间】:2017-06-02 13:34:19
【问题描述】:
我正在使用
compile 'com.google.android.gms:play-services-auth:10.0.1'
compile 'com.google.android.gms:play-services-drive:10.0.1'
在我的 Android 应用中实施 Google Drive。该应用程序运行良好,直到我使用 Proguard 混淆了该应用程序。一旦应用程序被混淆,当我尝试启用 Google Drive Backup 选项时,应用程序会弹出帐户选择对话框,之后不会继续。
在应用程序的调试版本中,当我尝试启用 Google Drive Backup 选项时,应用程序会弹出帐户选择,然后进入 Google Drive Permission 对话框以访问驱动器文件。
我读到 Google 为 Google Play 服务添加了 Proguard 规则,我想知道我的问题可能是什么。我还尝试了以下 StackOverFlow 线程中建议的 Proguard 规则
Google Drive API doesn't play well with ProGuard (NPE)
Release apk not working after enabling proguard, not able to debug too
How to fix Proguard issue with Google Drive REST API
但是,提供的解决方案对我不起作用。是否需要添加任何新规则才能使最新的 Google Drive API 正常工作?
【问题讨论】:
标签: android google-drive-api google-drive-android-api