• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android 【Solved by hand】JDK not installed correctly at location entered in Android Platform settings

Zhanghua

Member
JDK not installed correctly at location entered in Android Platform settings.

When generate the Key in preference:
WARNING: can't open config file: ${runtimeLocation}\bin\openssl.cnf

And build the APK error:
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> com.android.ide.common.signing.KeytoolException: Failed to read key default_alias from store "D:\ASDF.keystore": Get Key failed: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.


keytool error: java.lang.Exception: Only one command is allowed: both -exportcert and -list were specified.



Any body give me some tips, TKU!
 
Last edited:

Zhanghua

Member
Newest error log.

WARNING: can't open config file: ${runtimeLocation}\bin\openssl.cnf
elapsed time 00:00:00.0519924s for command "C:\ProgramData/GameMakerStudio2-Beta/Cache/runtimes\runtime-23.1.1.290\bin/openssl.exe" base64 -in "D:\GMS2_BETA\data\1\GMS2TEMP\keysha" started at 06/04/2021 09:56:47
"D:\JDK\bin/keytool.exe" -exportcert -keystore "D:\qweasdf.keystore" -alias "qweasdf" -storepass "qweasdf" -list -v

Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
keytool error: java.lang.Exception: Only one command is allowed: both -exportcert and -list were specified.
elapsed time 00:00:00.1704773s for command "D:\JDK\bin/keytool.exe" -exportcert -keystore "D:\qweasdf.keystore" -alias "qweasdf" -storepass "qweasdf" -list -v started at 06/04/2021 09:56:47



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':com.company.game:packageRelease'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> com.android.ide.common.signing.KeytoolException: Failed to read key aha from store "D:\project_name.keystore": Get Key failed: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
 
Last edited:

Zhanghua

Member
I have to use the keytool by hand........to generate the keystore file now......
Such as:
keytool -genkey -alias ccc -keypass 123456 -keyalg RSA -keysize 1024 -validity 365 -keystore D:/ccc.keystore -storepass 123456
 
Top