错误10-ionic 3(Cordova)cordova-plugin-googleplus从Google Play商店安装后 [英] Error 10 - ionic 3(Cordova) cordova-plugin-googleplus After install from Google Play Store

查看:258
本文介绍了错误10-ionic 3(Cordova)cordova-plugin-googleplus从Google Play商店安装后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照所有步骤在Play商店上发布了APK.但是从Play商店安装后出现错误10. 但是,当我将发布的apk从我的计算机安装到android mobile时,就可以正常工作.

I followed all the steps to publish apk on play store. But getting error 10 after installing from play store. But When I install released apk from my computer to android mobile it is working fine.

创建APK的步骤-

步骤1:使用以下命令创建了构建发行版本的离子Cordova项目-

Step 1: Created build release ionic Cordova project using below command -

ionic cordova build android --prod --release

此后,我得到未签名的apk("../../platforms/android/build/outputs/android-release-unsigned.apk").

After this i got unsigned apk("../../platforms/android/build/outputs/android-release-unsigned.apk").

步骤2:我使用java keytool命令对apk进行了签名-

Step 2: I signed the apk using java keytool command -

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ../../release-key.keystore ../../platforms/android/build/outputs/android-release-unsigned.apk keystore-alias

步骤3:还通过使用Java工具-

Step 3: Also verified the signature by using java tool -

jarsigner -verify -verbose -certs ../../platforms/android/build/outputs/android-release-unsigned.apk

在签名已验证"命令窗口中找到一个消息.

Got a messag in command window "Signature verified".

步骤4:然后使用"Android SDK"的zipalign工具对齐/优化apk,命令如下-

Step 4: Then used zipalign tool of "Android SDK" to align/optimize the apk, command is as below -

        zipalign -v 4 ../../platforms/android/build/outputs/android-release-unsigned.apk ../../platforms/android/build/outputs/ToDo.apk

第5步:将apk发布到" https://play.google.com ".

Step 5: Published the apk to "https://play.google.com".

发布几小时后,apk在Google PlayStore中列出. 我从Android手机上的Google PlayStore安装了它,并收到错误10.

After Some couple of hours published apk was listed on Google PlayStore. I installed it from Google PlayStore on my android mobile and getting error 10.

获取SHA-1密钥的步骤-

步骤1:使用Java keytool命令创建密钥库文件-

Step 1: Keystore file is created using java keytool command -

keytool -genkey -v -keystore ../release-HMC.keystore -alias release-key -keyalg RSA -keysize 2048 -validity 10000

步骤2:使用以下命令获得SHA-1密钥-

Step 2: Got SHA-1 Key by using below command -

keytool -list -v -keystore ../release-HMC.keystore -alias release-key

步骤3:从" https://developers.google.com/mobile/add?platform=android&cntapi=signin "

,而且我还在Google控制台上启用了"Google+ API"(" https://console.developers.google.com/apis/).

And I also enabled "Google+ API" on Google Console("https://console.developers.google.com/apis/").

我做错了什么,请帮忙!

推荐答案

问题是发布时默认选择了Google Play应用签名.

The problem was that the google play app signing was selected by default when we publish.

1 .打开Goog​​le Play控制台( https://play.google.com/apps ),然后使用凭据,然后选择您的android应用.

1. Open Google Play Console(https://play.google.com/apps) and log in with your credentials then select your android app.

2 .转到您的应用程序管理.

2. Goto Your App management.

3 .转到发布管理"菜单,然后选择应用签名"

3. Goto "Release Management" menu and select "App Signing"

4 .在应用程序签名"中,您将看到应用程序签名证书"面板复制"SHA-1证书指纹".

4. In "App Signing" you will see the "App Signing Certificate" Panel Copy "SHA-1 certificate fingerprint".

5 .转到" https://developers.google.com/mobile/add? platform = android& cntapi = signin "来创建Android移动项目.

5. Goto "https://developers.google.com/mobile/add?platform=android&cntapi=signin" to create the Android mobile project.

注意::在第5步"中,创建项目表单会要求您选择项目,为此,您需要首先在"

Note: In "Step 5" create project form asks you to select project so, for this you need to create project first on " https://console.developers.google.cm/".

6 .从步骤5"创建Android移动项目.在上述步骤中,它要求输入"SHA-1密钥"(粘贴从Google Play控制台获得的SHA-1证书指纹)以创建项目.

6. Create the Android mobile project from "step 5". In above step, it asks for "SHA-1 key"(paste SHA-1 certificate fingerprint which you get from Google Play Console) to create the project.

7 .在第5步"和第6步"之后,Google会在您的" https://console.developers.google.com/"项目.

7. After "step 5" and "step 6" Google automatically creates the "OAuth Client" and API key for you in your "https://console.developers.google.com/" project.

8 .要访问您的Google API服务,请从"htts://console.developers.google.com/"获取您的android项目的OAuth和API密钥

8. To access your Google API services get OAuth and API Key for your android project from "htts://console.developers.google.com/"

有关更多信息,请参见链接-"

For more information see the link - "http://www.jomendez.com/2017/08/30/ionic-2-google-sign-in-error-10-with-firebase/"

这篇关于错误10-ionic 3(Cordova)cordova-plugin-googleplus从Google Play商店安装后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆