0
I need to generate the hash of my Mac to add on Facebook and be able to continue the application I’m developing, where you need to login. I’ve executed the command in several places but when I put in the app inside "Developers.facebook" and run my application, returns that the key is invalid.
One thing I noticed is that in many posts, they tell to run in the place where is the "debug.Keystore" (usually in users/. android).
On my Mac there is no such directory, let alone debug.keystore. I am using Android Studio.
Does anyone know any other valid form?
In general, it is you who generates the
debug.keystore
and keeps it somewhere. This is the same key you use to sign your apk, to send to Google Play. The folder.android
stays at your user’s home (if it’s the same as linux). In this case, when you build the apk, you have to specify inside yourbuild.gradle
the settings of signin, that is, the key, the alias and the passwords.– Wakim
I will try to check by build.Radle because the directory . android does not exist anywhere on my machine. Thanks for the help @Wakim
– Luiz Henrique Ugliano
But if you haven’t set up any apk signature, then you won’t have it there. The setting is to sign the apk depending on your
build flavor
(release or debug) during build. I recommend taking a look at this link to help you set this up: http://stackoverflow.com/questions/18328730/how-to-create-a-release-signed-apk-file-using-gradle– Wakim
It’s funny that I have a Windows machine and I didn’t have to do any of that. The directory and components were generated normally. Only on my Mac I came across this, but I’ll take it slow. tks @wakim
– Luiz Henrique Ugliano
But how did you generate signed apk? In addition to setting in Gradle, you can use the menu Build -> Generate Signed APK... and provide the information via the graphical interface.
– Wakim
I didn’t generate any signed apk. I’m starting development and making the apps just for testing. I don’t really understand the link, I need to play all that content in the build.Radle? @Wakim
– Luiz Henrique Ugliano
You need to put yes, because this setting will be used by Gradle to sign the apk. But where does facebook charge the hash? Even for development? Do you have a link?
– Wakim
Yes... You need to generate the key with the computer hash to allow the app compiled on it to access the features through the Facebook SDK... From a simple login to more elaborate. On Windows I took the letter, on Mac I’m getting it. @Wakim
– Luiz Henrique Ugliano
I did all the steps that are in the link, generated the signed key, the apks correctly, but this directory . android with debug.Keystore is not generated by anything. Do you have anything else to do? @Wakim
– Luiz Henrique Ugliano
Luiz, the directory should be created (I don’t know when, but it is created by someone: sdk or android-studio). But the debug.Keystore It’s yours, which you generate using your credentials. Take a closer look at this link: http://developer.android.com/tools/publishing/app-signing.html#studio
– Wakim
I followed exactly this tutorial... I don’t know what might be happening... Anyway, thanks! @Wakim
– Luiz Henrique Ugliano