I cannot generate an android certificate

mattgenie

  • *
  • Posts: 14
whenever I generate a certificate i get this:
C:\Users\USER\stencylworks\android-sdk\\stencyl.keystore

there is no such directory
as a result of this , i cannot publish my game
 i saw a similar complaint but the solution was unclear, the person just said that stencyl
was looking for the android sdk folder at the wrong location
please assist, thanks

rob1221

  • *
  • Posts: 9419
Did you do File > Preferences > Tools > Download Android Tools already?  Are there correct paths for the Android NDK, SDK, and JDK?

You also have a sign-in error which might be unrelated to your Android error.

mattgenie

  • *
  • Posts: 14
yes, there are correct paths
I have signed in and still have the same problem
The latest log is attached

rob1221

  • *
  • Posts: 9419
In this topic, the dev had the same problem and solved it but it's not exactly clear what the solution is.  Do you currently have multiple installs of Java?
http://community.stencyl.com/index.php/topic,47890.0.html

mattgenie

  • *
  • Posts: 14
looks like i have jdk 1.6 and 1.8 installed, and jre 6

rob1221

  • *
  • Posts: 9419
Try removing the outdated Java 6 installs and see if that helps at all.

mattgenie

  • *
  • Posts: 14
I have removed  jdk 1.6,
still getting:
The path provided for android certificate doesn't exist. Correct  this on the android certificates page.
recall a non existent location is what appears there whenever I generate a certificate
"C:\Users\USER\stencylworks\android-sdk\\stencyl.keystore"

mattgenie

  • *
  • Posts: 14
also unistalled JRE 6

rob1221

  • *
  • Posts: 9419
Could you try reinstalling JDK 8 and see if that helps?

mattgenie

  • *
  • Posts: 14
I uninstalled JDK8 and reinstalled it, same problem.

still getting:
The path provided for android certificate doesn't exist. Correct  this on the android certificates page.
recall a non existent location is what appears there whenever I generate a certificate
"C:\Users\USER\stencylworks\android-sdk\\stencyl.keystore"

rob1221

  • *
  • Posts: 9419
I'm not sure if this solves your problem, but while looking into this I discovered that the Android certificate path in settings wasn't actually being used, at least not for the "view certificate" and "view fingerprints" options.  Only the default path (the one in your error message) was being used.  Try b10314 and see if that solves your problem.

mattgenie

  • *
  • Posts: 14
I don't understand what you mean by try b10314, please explain

corbanwolf

  • Posts: 126
Download newest version of stencyl


mattgenie

  • *
  • Posts: 14
I have figured out the issue!
Stencyl kept on generating this path whenever I tried to generate password:
"C:\Users\USER\stencylworks\android-sdk\\stencyl.keystore"

while my android sdk folder was in this path:
C:\Users\USER\AppData\Roaming\Stencyl\stencylworks\android-sdk

I copied the android-sdk folder from the above location, located the path that stencyl always generates, that is:
C:\Users\USER\stencylworks
and pasted the android-sdk folder there.

After that, I generated the certificate again and it appeared in the  android-sdk folder at the modified location.
Also, the .apk file was published without issues.

Thanks for your help, I hope someone else finds this useful, and I hope I don't have any problems uploading to google play because this has been exhausting.