Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by KHIZAR HAYAT · Dec 14, 2013 at 04:27 PM · facebookkeystore

ANDROID DEBUG KEYSTORE FILE IS MISSING

HEY developers i integrated facebook sdk with unity4. In facebook setting package name and class name shown but Debug Android Key Hash is not showing and also a warning message appear that your Android Debug Keystore file is missing. i tried to create new key but the message still exist. FACEBOOK SDK VERSION=4.3.6 UNITY4 please help me i am stuck thanx in advance

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
9

Answer by leo.flaherty · Dec 18, 2013 at 02:33 PM

UPDATE: I got it. If your %HOMEPATH% environment variable is, let's say, on your C: drive but your Unity project is on another drive (in my case the S: drive, which is where all company projects get put), then when the Facebook SDK calls System.IO.File.Exists(DebugKeyStorePath), DebugKeyStorePath is wrong. That's because DebugKeyStorePath is looking in

System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore"

but HOMEPATH only returns

\Users\MyUserName

and not

C:\Users\MyUserName

What I did to fix the problem, as a workaround, was to go to the FacebookAndroidUtil.cs file, and on line 62 change the code from

System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore" :

to

 System.Environment.GetEnvironmentVariable("HOMEDRIVE") + System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore" :

which now works fine. Hopefully this works for you too.

Comment
Add comment · Show 9 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image KHIZAR HAYAT · Dec 18, 2013 at 02:42 PM 0
Share

thanx dude to concider it. at this momnt i am not able to try it because of some problem when i will free i will definitrly do it and reply you a feedback . thanx

avatar image haim96 · Dec 18, 2013 at 03:12 PM 0
Share

or you just could add the right path to the system variables...

avatar image leo.flaherty · Dec 18, 2013 at 04:02 PM 0
Share

The thing is, that IS the right path. By default, HO$$anonymous$$EPATH gets set to omit the drive letter. Not sure why. However I'm always leery of messing with paths if I can avoid it, as you never know how it'll effect some random code in some obscure corner of your machine. What if there's some code somewhere else that also adds a "C:" to the start? C:C:\Users\$$anonymous$$yUserName won't work. With that in $$anonymous$$d, I've looked into it and an even better way of handling it is to change line 62 to:

 System.Environment.GetEnvironmentVariable("HO$$anonymous$$EDRIVE") + System.Environment.GetEnvironmentVariable("HO$$anonymous$$EPATH") + @"\.android\debug.keystore" :
avatar image rodimus_strom · Feb 17, 2014 at 09:59 AM 0
Share

hey i add "c:" but then it show "OpenSSL not found. $$anonymous$$ake sure that OpenSSL is installed, and that it is in your path"

avatar image leo.flaherty · Feb 17, 2014 at 10:12 AM 0
Share

You haven't said whether you actually have OpenSSL installed and in your path or not

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

25 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Error building player with project that includes the Facebook SDK 1 Answer

Why missing android debug keystore? 0 Answers

Can't get rid off the OpenSSL error in facebook settings for android! 0 Answers

After logging in to facebook (Soomla plugin) instantly share a post with a captured image. How is it possible? (Unity3D) 0 Answers

LoadLevel while FB.Init is in progress 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges