Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
475 views
in Technique[技术] by (71.8m points)

android - Huawei AppGallery 6003 Error Code in release version

I removed the all gms related apis and added hms ones. My debug version is working awesome, I have the agconnect file in my project root. But If I download my app directly from appGallery, my hms core related apis are not working. (like pushkit and iap). I checked the console when my app's release version is running and I saw this error:

 com.huawei.hms.common.ApiException: 6003: certificate fingerprint error

There are two SHA-256 fingerprint code:

enter image description here

How did I build the app?

It was pretty same with gms version. I selected the Build->Generate Signed Bundle or Apk menu and I builded with my existing keystore file which I also use for Google Play, then uploaded to AppGallery connect. There was no error or warning.

How can I fix it?

question from:https://stackoverflow.com/questions/65914584/huawei-appgallery-6003-error-code-in-release-version

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Check whether the appid is the same as the appid on AppGalleryConnect. Check your configuration carefully. In addition, check the certificate fingerprint. Ensure that the JSON file is stored in the project-level directory instead of the application-level directory, check the following items configuration process carefully.

1.Check whether the fingerprint certificate is correctly configured when you apply for related services. Open the APK file of an app, extract the META-INF directory from the file, obtain the CERT.RSA file in the directory, and run the keytool -printcert -file META-INF/CERT.RSA command to print the signature certificate information.

2.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.

3.Sign in to AppGallery Connect, click My apps. On the page that is displayed, go to Develop > Project settings > conventional, check whether SHA-256 certificate fingerprint is consistent with the fingerprint in step 1.

4.For third-party access, check the value of appid.

<meta-data android:name="com.huawei.hms.client.appid" android:value="Your appid"/> 

or

<meta-data android:name="com.huawei.hms.client.appid" android:value="appid=Your appid"/>

Also you're advised to upgrade the SDK.

Hope this could help with your issue. :)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...