Search code examples
androidkotlinhuawei-mobile-serviceshuawei-developers

Huawei Site Kit is returning Error Code 6


I am trying to develop an android application using Huawei Site Kit. I am following this codelab at the moment : https://developer.huawei.com/consumer/en/codelab/HMSSiteKit/index.html#0 I did everything exactly what codelab says but when I run my application it is throwing an error and in the log it is saying "Error Code 6"

Did anybody received same error before and solved it? Help me please


Solution

  • It seems the API token is invalid, I searched the official docs and found the list of error codes. They may help. https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/hms-site-result-code

    Its specifically for site kit only.