Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7193

HMS Dexguard Obfuscation issue

$
0
0

I have implemented dexguard in my application. Application is working when no obfuscation is done but crashes as dexguard obfuscation is done.

it gives the error.

Caused by: android.view.InflateException: Binary XML file line #0 in com.avanza.ambitwizhmb:layout/2131558492: Error inflating class fragment

Caused by: com.huawei.hms.maps.model.RuntimeRemoteException: AppId is null. Please check whether the agconnect-services.json file is added to your app project.

the dexguard rules for huawei is:

-keep class com.huawei.agconnect.**{*;}-dontwarn com.huawei.agconnect.**-keep class com.hianalytics.android.**{*;}-keep class com.huawei.updatesdk.**{*;}-keep class com.huawei.hms.**{*;}-keep interface com.huawei.hms.analytics.type.HAEventType{*;}-keep interface com.huawei.hms.analytics.type.HAParamType{*;}

Viewing all articles
Browse latest Browse all 7193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>