When many developers access the HUAWEI ID service, they often report an error of 907135701. According to the official website documentation, the error code 907135701 means:
This error code appears on both Android and Hongmeng. There are many reasons for this error. Developers can check according to the following points.
Android project
Reason 1: The developer did not register the application product information on the developer alliance, and generated the APPID corresponding to the application;
Solution: Before developing an application, you need to configure relevant information in AppGallery Connect.
Before developing an app, you need to register as a developer on the HUAWEI Developer Alliance website and complete real-name authentication. For details, see Account Registration Authentication . See Creating a Project and Creating an Application to complete the creation of an application.
Cause 2: The certificate fingerprint is not configured or the configuration is incorrect
Solution: Focus on checking whether the fingerprint configured on the AGC webpage is consistent with the fingerprint when the APK is packaged.
For the configuration method of certificate fingerprint, please refer to the official documentation of the developer alliance
Reason three: agconnect-services.json is incorrectly configured or the agconnect-services.json file is not placed in a proper location.
Solution: Make sure that the APPID in the agconnect-services.json file is consistent with the APPID on the AGC platform; the downloaded agconnect-services.json file should be copied to the App directory.
It's also important to note that if you don't have a special need, don't turn on the "no key included" switch.
For details, please refer to the official documents of the alliance to reconfigure.
HarmonyOS (Java) project
Reason 1: The location of the agc file is incorrect.
Solution: You need to copy the "agconnect-services.json" file to the "entry" application-level root directory.
Cause 2: The certificate fingerprint is not configured or the configuration is incorrect.
Solution: The certificate fingerprint configuration method can view the configuration application signature information . You can confirm whether the certificate fingerprint is configured correctly by checking whether the signature of the application is the same as that configured on the alliance. Reference link
Reason 3: The properties of the config.json file are incorrectly configured
Solution: Add the following properties to the module node of the HarmonyOS application "entry/src/main/config.json". The value of "name" should not be modified.
"metaData": {
"customizeData": [
{
"name": "com.huawei.hms.client.appid",
// 这里需要把OAuth Client ID替换为OAuth 2.0客户端ID
"value": "OAuth Client ID" //
}
]
}
Reason 4: The plugin configuration is incorrect
Solution: You need to add the agcp plugin configuration. Please choose according to the actual situation.
Method 1: Add the following configuration in the next line of the file header declaration.
apply plugin: 'com.huawei.agconnect'
Method 2: Add the following configuration in plugins.
plugins {
id 'com.android.application'
// 添加如下配置
id 'com.huawei.agconnect'
}
Learn more details>>
Visit the official website of HUAWEI ID Services Developer Alliance
Visit the official website of Huawei Developer Alliance
Get development guidance documents
Huawei Mobile Services Open Source Warehouse Address: GitHub , Gitee
Follow us to know the latest technical information of HMS Core for the first time~
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。