Google login ERROR: 10 misconfiguration when doing ionic cordova platform add android on macOS, but working when build with Windows
ZentoDH opened this issue · 3 comments
I finally have it working on the master branch in my project on a Windows machine. Now, my colleague with a mac pulls the code from master, removes android platform, adds android platform tests it and it says the infamous 10, misconfiguration, error code. I did the same on my windows machine but it kept working. I found that weird so I cloned the repo fresh on another windows machine and it just works. Now since today I got a mac from work and it's the exact same problem as my colleague, the misconfiguration 10 code. I have no clue whatsoever on how I can start fixing this. It's the exact same code and it's just not working. Any ideas? So in short, it works if you add the platform on windows, but doesn't work if you add the platform android on macOS.
@ZentoDH could you please write down steps for a Windows machine at least?
Hello @ZentoDH, If you read carefully the documentation from cordova and read cordova-plugin-googleplus you will get the solution, but I'm here to give you my shorcut (I was facing the same problem using mac, and got the solution through the cordova documentation).
First than all, you must to generate your app's keystore, follow this example
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
To see the information about the generated keystore:
keytool -list -v -keystore my-release-key.keystore
(After this I'm taking for granted that you have made your Google API setup)
Then you need to run this command (I'm using Ionic) npx cordova clean && npx cordova run android --device -- --keystore=my-release-key.keystore --storePassword=password --alias=alias_name --password=password
With that command you are telling to cordova which keystore work with in order to build your app. That was my solution I hope it works for you too.