Health Kit:无法通过华为帐号完成登录授权

Health Kit: Unable to complete Login and Authorization via Huawei ID

我用Huawei Health Kit in my Android app for data access in Huawei Health app. After launching the app on my Huawei HMS phone, I tap the “Login and Authorization” (see the screenshot below). It does not do anything. In other words, it seems that the app is unable to complete the process of login and authorization. Note that I do have a Huawei ID in the phone, and have Health Kit service approved for my app from link.

有人可以帮忙吗?

您似乎还没有将签名证书导入应用程序。有几种方法可以解决此问题。简单的方法是在应用程序的 build.gradle 文件中添加以下代码:

signingConfigs {
              debug { 
storeFile file('xxx.jks')
                            storePassword 'xxx '
                            keyAlias = 'xxx'
                            keyPassword 'xxx'

希望这对您有所帮助。您可以在 Link

中找到更多信息