… great innovation from small quarters …
Unity3d Game Development

Unity Facebook SDK: Missing android debug keystore

While working on Knox’s Room for Android, we ran in to some hiccup with Facebook SDK for Unity. I’ve spent the whole day try to figure out what’s wrong. Finally, I found a solution posted by  “Jerhill” on StackOverflow.com

To recap, if you see an error like this:

It could be because your unity project is not located on your System Drive.

The workaround is to modify FacebookAndroidUtil.DebugKeyStorePath property to point to the correct location.

Just find FacebookAndroiUtil.cs in your project, then add the HOMEDRIVE environment lookup below.

 

        private static string DebugKeyStorePath
        {
            get
            {
                return (Application.platform == RuntimePlatform.WindowsEditor) ?
     System.Environment.GetEnvironmentVariable("HOMEDRIVE") + System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore" :
                    System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + @"/.android/debug.keystore";
            }
        }

Comments are closed.

Pin It