androidandroid-gradle-pluginsigned-apk

generating signed apk cannot find common super class


I am trying to build a signed apk for my app but am getting this error whenever I try to build it:

Can't find common super class of [com/google/android/gms/internal/zzata] (with 1 known super classes) and [java/lang/String] (with 2 known super classes)

I was able to build signed apk's using different keystores before just fine but now all I get is this error.


Solution

  • It looks like a proguard setting problem, see: Warning: can't find superclass or interface.

    If the missing class is referenced from your own code, you may have forgotten to specify an essential library. Just like when compiling all code from scratch, you must specify all libraries that the code is referencing, directly or indirectly. If the library should be processed and included in the output, you should specify it with -injars, otherwise you should specify it with -libraryjars.