Unable to generate build with pro guard enabled using Mapbox SDK 6.7

喜欢而已 提交于 2019-12-02 11:24:44

问题


Mapbox SDK: 6.7.0

After enabling the proguard in the gradle, we are getting the following error.

com.mapbox.services.android.location.LostLocationEngine: can't find superclass or interface com.mapbox.services.android.telemetry.location.LocationEngine   

com.mapbox.services.android.location.MockLocationEngine: can't find referenced class com.mapbox.services.android.telemetry.location.LocationEngine$Type

I have used LocationComponent, LocationEngine and LocationEngineProvider classes in my application. Do I need to add anything in proguard rules to generate a build with proguard enabled?

On commenting usages of these class, the build can be generated with proguard enabled.


回答1:


Try adding the below lines in proguard file

-dontwarn com.mapbox.services.android.location.LostLocationEngine
-dontwarn com.mapbox.services.android.location.MockLocationEngine


来源:https://stackoverflow.com/questions/53541770/unable-to-generate-build-with-pro-guard-enabled-using-mapbox-sdk-6-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!