+1 vote

Sometimes when I'm exporting an APK, it will fail with the following error:

ERROR: FileAccessWindows::close: Condition ' rename_error ' is true.
At: drivers\windows\file_access_windows.cpp:135

For some reason it's not able to rename the .tmp to .apk, and so the .tmp file remains. But the jarsigner command tries anyway, but can't find the file:

running cmdline: "H:/Program Files/Java/jdk1.8.0_92/bin/jarsigner.exe" "-digestalg" "SHA1" "-sigalg" "MD5withRSA" "-verbose" "-keystore" "H:/dev/godot/release_20160524_SHA1.keystore" "-storepass" "pwd" "H:/path/to/file/TheApp.apk" "alias"
jarsigner: unable to open jar file: H:/path/to/file/TheApp.apk

The verify is also attempted, so it seems error conditions are not checked during this process

running cmdline: "H:/Program Files/Java/jdk1.8.0_92/bin/jarsigner.exe" "-verify" "H:/path/to/app/TheApp.apk" "-verbose"
jarsigner: java.io.FileNotFoundException: H:\path/to/fileTheApp.apk (The system cannot find the file specified)

If I then delete the .tmp file and try the exact same thing again, it will probably export just fine.

in Engine by (722 points)
edited by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.