Mapbox SDK:6.7.0
在 gradle 中启用 proguard 后,我们收到以下错误。
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
我在我的应用程序中使用了 LocationComponent、LocationEngine 和 LocationEngineProvider 类。我是否需要在混淆器规则中添加任何内容才能生成启用了混淆器的构建?
在注释这些类的用法时,可以在启用 proguard 的情况下生成构建。
尝试在 proguard 文件中添加以下行
-dontwarn com.mapbox.services.android.location.LostLocationEngine
-dontwarn com.mapbox.services.android.location.MockLocationEngine
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)