Google Drive API doesn't play well with ProGuard (NPE)

后端 未结 6 872
渐次进展
渐次进展 2020-11-30 04:06

Currently, I\'m having experience that, a piece of code, which makes use of Google Drive API is running fine without introducing ProGuard.

However,

6条回答
  •  伪装坚强ぢ
    2020-11-30 04:46

    The method Types.getSuperParameterizedType relies on information about generics. Generics are erased in Java. The compiler only adds them as annotation attributes, the JVM ignores them, and ProGuard discards them unless you tell it not to. So this might help:

    -keepattributes *Annotation*
    

提交回复
热议问题