If you have switched on code optimization through proguard by using -optimizations option in your proguard setting, presence or absence of some of the optimization filters may result in LinkageError with Hansel. 

Please add the following flags (marked in red) in you proguard settings to fix this issue

 -optimizations !class/marking/final,!method/marking/final,!method/inlining/short,!method/inlining/unique


Don't forget to run gradle clean before building the apk again.


Check out the optimisation related documentation of Proguard for more details.

Have more questions? Submit a request


Please sign in to leave a comment.