I am trying to integrate Huawei Site Kit Search Activity into the Flutter application. However, I got the error as shown in the picture, and no result was getting back.
I am trying to integrate Huawei Site Kit Search Activity into the Flutter application. However, I got the error as shown in the picture, and no result was getting back.
You can try adding debug to buildTypes. like the following:
buildTypes {
debug {
signingConfig signingConfigs.debug
}
release {
signingConfig signingConfigs.debug
}
}
According to the following:
Error code 6003 is caused by inconsistent certificate fingerprint configurations. Check the following items:
Error code 6003 means Inconsistent certificate fingerprint configurations. The proposed solution is:
Ensure that the certificate fingerprint packed in the app on your device is consistent with that configured through SHA-256 certificate fingerprint in AppGallery Connect. For details, please refer to Configuring App Information in AppGallery Connect.
HMS Core (APK) will cache the signature file. You need to find HMS Core (APK) on the Apps page of your device and clear its cache, restart your app, and perform the previous operation again.
You can use either way to get your apk fingerprint and compare to make sure it's the same one.
command example: jarsigner -verbose -verify MyAPK_base_v11.0.apk > MyAPK_info.txt
review MyAPK_info.txt and find ".RSA" path and use below command
unzip -p MyAPK_base_v11.0.apk META-INF/BNDLTOOL.RSA | keytool -printcert
Result:
Certificate fingerprints:
SHA1: D0:88:29:99:94:C3:72:44:EA:CF:B1:6B:09:3E:01:95:FE:E4:45:BE
SHA256: EF:68:A7:0A:3A:47:F8:DD:46:58:52:EA:E2:59:AE:D6:1A:43:38:D8:14:26:05:9E:D3:99:C2:D1:F6:34:D9:DE
Signature algorithm name: SHA1withRSA (weak)
Subject Public Key Algorithm: 1024-bit RSA key (weak)
apksigner.bat verify --print-certs MyAPK_base_v10.2.6-8569.apk
result:
Signer #1 certificate DN: CN=Michael Smith, OU=My Org, O=A Team, L=Okemos, ST=Michigan, C=US
Signer #1 certificate SHA-256 digest: ef68a70a3a47f8dd465852eae259aed61a4338d81426059ed399c2d1f634d9de
Signer #1 certificate SHA-1 digest: d088299994c37244eacfb16b093e0195fee445be
Signer #1 certificate MD5 digest: 68710e87d99e7f946958db33d3fcf13c