Many developers are accessing Huawei account services , Often 907135701 The error of . According to the document on the official website , Error code 907135701 Express :
This error code will appear on both Android and Hongmeng , There are many reasons for this error , Developers can check according to the following points .
Android engineering
The reason a : The developer has not registered the application product information on the developer alliance , And generate the corresponding APPID;
resolvent : Before developing applications , Need to be in AppGallery Connect Configuration information in .
Before developing the application, we need to Huawei developer Alliance Register as a developer on the website and complete real name authentication , Please refer to Account registration authentication . See Create project and Create an , Complete the creation of the application .
Reason two : Certificate thumbprint is not configured or configured incorrectly
resolvent : Key inspection AGC The fingerprint and APK Whether the fingerprints are consistent when packing .
For the configuration method of certificate fingerprint, please refer to the developer alliance Official documents
Reason three :agconnect-services.json Incorrect configuration or agconnect-services.json The file is not in the right place .
resolvent : Please make sure agconnect-services.json In the document APPID And AGC On the platform APPID bring into correspondence with ; Download the agconnect-services.json The file should be copied to App Under the table of contents .
The other thing to note is that , If there is no special need , Please don't open “ Does not contain a key ” The switch of .
For details, please refer to Official documents of the alliance , Reconfiguration .
HarmonyOS(Java) engineering
The reason a :agc The file location is incorrect ,
resolvent : Need to put “agconnect-services.json” File copy to “entry” Under the application level root directory .
Reason two : The certificate thumbprint is not configured or configured incorrectly .
resolvent : The certificate fingerprint configuration method can be viewed Configure application signature information . By checking whether the signature of the application is consistent with that configured on the Federation, you can confirm whether the certificate fingerprint is configured correctly . Reference resources link
Reason three :config.json The file attribute configuration is incorrect
resolvent : stay HarmonyOS application “entry/src/main/config.json” Of module Add the following attribute configuration to the node . among “name” Do not modify the value of .
"metaData": {
"customizeData": [
{
"name": "com.huawei.hms.client.appid",
// Here we need to put OAuth Client ID Replace with OAuth 2.0 client ID
"value": "OAuth Client ID" //
}
]
}
Reason four : The plug-in configuration is incorrect
resolvent : Need to add agcp The plug-in configuration . Please select according to the actual situation .
Mode one : Add the following configuration... On the next line under the file header declaration .
apply plugin: 'com.huawei.agconnect'
Mode two : In plugins Add the following configuration .
plugins {
id 'com.android.application'
// Add the following configuration
id 'com.huawei.agconnect'
}
Learn more >>
visit Huawei account service developer alliance official website
visit Official website of Huawei developer Alliance
obtain Development guidance document
Huawei mobile service open source warehouse address :GitHub、Gitee
Pay attention to our , The first time to understand HMS Core Latest technical information ~