我选择中国大陆时出现错误:
MAJOR:22:集成版本更新API(checkUpdate)。如果您已集成API,请检查配置文件中HMS SDK代码是否经过混淆。修改配置文件的详细信息请访问 https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/appgallerykit-preparation#h1-1574846682104 ;SUGGESTION:17: HMS调用的SDK接口:34:集成HMS服务:[agconnect-core,iap,base]
有谁知道如何解决这个问题吗?
谢谢你。
文档已更改:更新应用程序。
这将是依赖项:
dependencies {
implementation "com.huawei.hms:base:6.12.0.300"
implementation "com.huawei.hms:appservice:6.12.0.300"
implementation "com.huawei.hms:hmscoreinstaller:6.12.0.300"
}
其中提供了文档中使用的类:
import com.huawei.hms.jos.AppParams;
import com.huawei.hms.jos.AppUpdateClient;
import com.huawei.hms.jos.JosApps;
import com.huawei.hms.jos.JosAppsClient;
import com.huawei.updatesdk.service.appmgr.bean.ApkUpgradeInfo;
import com.huawei.updatesdk.service.otaupdate.CheckUpdateCallBack;
import com.huawei.updatesdk.service.otaupdate.UpdateKey;