Add them one by one. Do not try to merge them.
Start with analytic, check the error you get.
Add the missing aar and try again. Until the errors are gone.
Desugaring is needed when they are using JAVA 8 Features. NOT always
Nope.
HMS Base = base-5.0.0.301.aar
OpenDevice = opendevice-5.0.0.301.aar
They are included, but for some reason hianalytics-5.0.1.301.aar did not find them.
Desugaring should solve this problem?
Some of the new Android libraries use Java 8 features. Android doesn't natively support those features so they must be removed (desugared) at some point. When you wrap a library that includes such features you need to desugar the wrapped library. This is done with an Android tool named desugar...
MultiDex did not help. Without desugaring I get this warnings in log:
=======================================
HiAnalyticsSDK_5.0.1.301
=======================================
HiAnalyticsInstance=> IE-004|HMSBIInitializer init failed,Missing hms sdk
ReportManager=> ReportManager:init instance with url
AAIDProcessor=> begin sync aaid from opendevice sdk
AAIDProcessor=> IE-005|Missing hms opendevice sdk,get aaid failed.Please upgrade the hms version
HiAnalyticsInstanceManager=> IE-005|Missing base sdk