Hi, first of all, I have JDK’s Keytool on Windows’s PATH and I use it successfully in Eclipse to sign Android apks.
Unity seems to be able to use the keytool to generate a Keystore with a Alias, but I get an error on console saying the Alias already exists! I have verified the generated user.keystore and it is valid, I can use it to sign apks through Eclipse.
The problem is Unity does not show the Alias in the Alias combobox of Publishing Settings, so I can only choose between “Unsigned (debug)” and “Create a new key”.
Before you ask: Yes, I have checked the “Use Existing Keystore” and browsed to the generated user.keystore.
The alias combo box will only show the key alias from the keystore when the keystore passwords match and are correct; could that be the problem? Any output in the console that could provide a hint? Does it work if you create a new keystore + keyalias from scratch?
Judging from that error you already have a file called user.keystore ? Do you get same if you create a new keystore under a different name?
if you copy paste the command line from the error message and execute it in a cmd.exe window; do you get errors there too ?
If you execute
Hi guys it’s really some java problem, I’ve downgraded the Java SDK to 6.14 and it worked normally. I was able to create a new key, and use a existent key
I could not get Unity to create a keystore, it always said failed to find Java SDK. I made sure that I had the corrent PATH set in my windows environment variables but it still says this. So I ran the keytool from my command prompt and created a keystore. What happens now? I have selected “Use existing keystore” and selected the keystore by pressing Browse Keystore. Is this correct? Or do I have to sign the .apk manually as described on the android developer site because I didn’t use Unity to generate it? I would rather use Unity if anyone can give me some ideas on how to get it to find my Java SDK.
I just had this problem and, for me, the solution was that I was “Working Offline”. I signed into my Unity account and was then able to see and select my key.