debug.Keystore on Mac to generate hash

Asked

Viewed 337 times

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 your build.gradle the settings of signin, that is, the key, the alias and the passwords.

  • I will try to check by build.Radle because the directory . android does not exist anywhere on my machine. Thanks for the help @Wakim

  • 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

  • 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

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

  • 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

  • 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?

  • 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

  • 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, 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

  • I followed exactly this tutorial... I don’t know what might be happening... Anyway, thanks! @Wakim

Show 6 more comments

1 answer

1

The directory .Android together with the debug.keystore were hidden in my Mac.

I executed the command defaults write com.apple.finder AppleShowAllFiles -bool true at the terminal and restarted the Finder.

After that, the directory was displayed and I was able to accomplish what I wanted.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.