Configuring Unity App to direct to Sandbox

Hi, Guys. I have some problem with integrating your SDK in Unity. When I entered app settings in window/GREE and then push button CONFIGURE I get three errors:

ExecCommand failed: Assets/Editor/GREE/Android/keystore/keystore.bat C:/Users/Sergey/.android/debug.keystore android androiddebugkey android Assets/Editor/GREE/Android/keystore/tmp.bin
UnityEngine.Debug:LogError(Object)
CommonUtil:ExecCommand(String, String) (at Assets/Editor/GREE/CommonUtil.cs:106)
ApplicationSettingsManager:GetKeyStoreMD5() (at Assets/Editor/GREE/ApplicationSettingsManager.cs:265)
ApplicationSettingsManager:ExportBuildSettingsForAndroid(Account, DevelopmentMode) (at Assets/Editor/GREE/ApplicationSettingsManager.cs:301)
ApplicationSettingsMenu:ExportBuildSettingsForAndroid(Account, DevelopmentMode) (at Assets/Editor/GREE/ApplicationSettingsMenu.cs:675)
ApplicationSettingsMenu:OnGUI() (at Assets/Editor/GREE/ApplicationSettingsMenu.cs:297)
UnityEditor.DockArea:OnGUI()

ExecCommand failed
UnityEngine.Debug:LogError(Object)
ApplicationSettingsManager:GetKeyStoreMD5() (at Assets/Editor/GREE/ApplicationSettingsManager.cs:267)
ApplicationSettingsManager:ExportBuildSettingsForAndroid(Account, DevelopmentMode) (at Assets/Editor/GREE/ApplicationSettingsManager.cs:301)
ApplicationSettingsMenu:ExportBuildSettingsForAndroid(Account, DevelopmentMode) (at Assets/Editor/GREE/ApplicationSettingsMenu.cs:675)
ApplicationSettingsMenu:OnGUI() (at Assets/Editor/GREE/ApplicationSettingsMenu.cs:297)
UnityEditor.DockArea:OnGUI()

CryptographicException: key is null
System.Security.Cryptography.RijndaelTransform…ctor (System.Security.Cryptography.Rijndael algo, Boolean encryption, System.Byte[ ] key, System.Byte[ ] iv)
System.Security.Cryptography.RijndaelManagedTransform…ctor (System.Security.Cryptography.Rijndael algo, Boolean encryption, System.Byte[ ] key, System.Byte[ ] iv)
System.Security.Cryptography.RijndaelManaged.CreateEncryptor (System.Byte[ ] rgbKey, System.Byte[ ] rgbIV)
ApplicationSettingsManager.EncryptConsumer (System.String plainText, System.Byte[ ] key) (at Assets/Editor/GREE/ApplicationSettingsManager.cs:412)
ApplicationSettingsManager.ExportBuildSettingsForAndroid (.Account account, DevelopmentMode devmode) (at Assets/Editor/GREE/ApplicationSettingsManager.cs:335)
ApplicationSettingsMenu.ExportBuildSettingsForAndroid (.Account account, DevelopmentMode devmode) (at Assets/Editor/GREE/ApplicationSettingsMenu.cs:675)
ApplicationSettingsMenu.OnGUI () (at Assets/Editor/GREE/ApplicationSettingsMenu.cs:297)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[ ] parameters, System.Globalization.CultureInfo culture)

Can you tell me what I’m doing wrong.

What could it be?

i might be a little late to the party, but i just tried out GREE today and stumbled upon these errors and maybe what i write here will be of help to some.

It’s about the Environment Variables. Keytool isn’t recognized as a command yet in that batch script

all you need to do is go to My Computer properties → advanced system settings → environment variables and edit the System Variable named Path and add to the back of the line your path to the jdk bin

example ;C:\Program Files (x86)\Java\jdk1.7.0_07\bin\

don’t forget the semicolon in front to separate different paths

I just get that error today, perfect time for you response

I also had the same error. Thanks for the help! :slight_smile:

i get the 3rd error too but i followed your suggestion and it still isn’t working it can’t find debug.keystore.

Having this error on OSX 10.7.5, anyone have any ideas about how to fix it? I checked running keystore in terminal and that seemed to work from there, so I’m pretty sure it’s in my .profile

Hi there,
We’ve had the same error.

On a windows machine, make sure the path to your keystore file doesn’t include any space-letters as the batch-file will interprete this as a new command.

in case it works it was a pleasure for us to make your day

regards,

NEONFIVE STUDIO

CryptographicException: key is null
System.Security.Cryptography.RijndaelTransform…ct or (System.Security.Cryptography.Rijndael algo, Boolean encryption, System.Byte[ ] key, System.Byte[ ] iv)

I think you are seeing this error because keystore.bat doesnt have an execution permission. It might be a good idea to try changing the file permission of keystore.bat. (Assets/Editor/GREE/Android/Keystore/keystore.bat)
I was able to solve this issue with the way above.