我有一个android应用程序,我需要为Google和app图库进行部署
它包含广告和IAP,问题是
处理广告/购买的正确方法是什么?
if hmsAvailable() {
// use Huawei ads/iap
} else {
// use Google ads/iap
}
2-我需要相同的代码库,那么在Gradle.build中同时使用GMS和HMS会不会引起问题?
3-华为似乎要阻止在其设备上安装GMS,所以如果用户用谷歌账户支付了IAP的溢价,这是否意味着当GMS在华为上被屏蔽时,他就不能恢复?
在我的应用程序中,我使用的是华为。问题是当用户在短时间内(比如大约5次)向IapClient发出多个请求(比方说大约2秒)时,我的应用程序就会抛出一个错误。
我的日志如下:
com.huawei.hms.iap.IapApiException: -1: Core error
at com.huawei.hms.iap.f.doExecute(IsEnvReadyTaskApiCall.java:1068)
at com.huawei.hms.common.internal.TaskApiCall.onResponse(TaskApiCall.java:190)
at com.
我对“逻辑猫”中的这条信息有些怀疑:
E/HMSSDK_AGCUtils: Get appId with AGConnectServicesConfig failed
如果该错误或消息可能会在将来出现问题,因为它是在查看地图时显示的?
我已经尝试了以下几点:
build.gradeManually add中不应用agconnect插件的
<meta-data
android:name="com.huawei.hms.client.appid"
<!-- Replace xxx with the actual app ID, which can be
我正在尝试将HMS添加到我们的GMS first应用程序中。这是一个庞大的应用程序,所以我们决定尝试HMS工具包转换软件。工具包添加了必要的依赖项和模块,并在需要的地方进行了适当的替换,但当我尝试构建我们的应用程序时,我得到了以下关于生成的模块的依赖项的错误: Execution failed for task ':xmsadapter:generateDebugRFile'.
> Could not resolve all files for configuration ':xmsadapter:debugCompileClasspath'.
&
我们已经实施了
"com.huawei.hms:appservice:$huaweiAppService" WHERE huaweiAppService = '6.1.0.301'
有一次坠机:
java.lang.IllegalArgumentException: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Strongly consider
最近,我在这个gradle代码中添加了HMS PushKit SDK:
implementation "com.huawei.hms:push:5.0.4.302"
在此之后,我注意到我的应用程序添加到应用程序列表中,可以从未知的来源安装应用程序(特别许可)。我检查了这个库的一个依赖项(com.huawei.hms.base.availableupdate)的com.huawei.hms.base.availableupdate文件,发现它具有以下特殊权限:
<!-- If it is Android 8.0, the targetSdkVersion of the ap