There must be some other ways to solve this error. But how i solved is simply adding this line of code in FacebookAndroidUtil.cs file System.Environment.GetEnvironmentVariable("G:\android\android-sdks") + @"\.android\debug.keystore" : The problem was i had %HOMEPATH% environment variable in other drive(In G:/) and unity project in another drive. Then whenever Facebook SDK calls System.IO.File.Exists(DebugKeyStorePath), DebugKeyStorePath is actually wrong. That is because DebugKeyStorePath is searching in System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore" Which is wrong path to find the key. Solution Go to FacebookAndroidUtil.cs file, and on line 62 change the code from System.Environment.GetEnvironmentVariable("HOMEPATH") + @"\.android\debug.keystore" : To System.Environment.GetEnvironmentVariable(" G:\android\android-sdks ") + System.Environment.GetEnvironm...
Unity3diy is a blog for unity game developers. We publish latest from unity asset store, unity game engine, unity software, unity technologies, unity games. Also unity packages and assetstore like uni tabs unity, paint 3d, qooapp, unity performance tool and an object reference is required for the non-static field.