And when I run the build Android build I get an “Unable to find keystore alias” error. I would like to know where I should fix it.apk,aab builds both have the same result.
I saw the error on Windows 10 and the Defold Engine version is 1.2.174.
No we bundle JDK 11 with the editor. What if you check the editor log? Help->Show Logs and open the most recent log file. You should see something like:
Ah, the returned information has labels in Japanese. And that will not work since the code is looking for the string “Alias name”. I’ve created a ticket (https://github.com/defold/defold/issues/5273) to track this issue and will try to include a fix in the next release.
You can work around the problem by bundling using bob.jar (download from d.defold.com) and specifying the alias:
All known issues with keystore builds have been resolved as far as I know. The only problem we have is if you use different passwords for the keystore and the key. This will be solved in 1.2.182.
Can you please share the steps you have done and the error you are getting? Include as much info as possible (How to get help).
Problem is, when i saved my password.txt file UTF-8 format. (Project->Bundle->Android Application : Bundle format : APK“Unable to find keystore alias”)
But, if password.txt file ANSI format. “Failed creating universal APK”
Also Bundle format : AAB working well.
Used : Defold\packages\jdk11.0.1-p1\bin\keytool.exe
Sorry for the very slow response here. We will change how the keystore password is used. We will pass the file with the password directly to the Android bundletool instead of loading it and then sending it. This will remove a source of potential encoding problems. This change is handled by this pull request which should end up in the next version of Defold:
Hello guys, just run to this error (Unable to find keystore alias) in 188. I have created keystore with command from Defold development for the Android platform.
Log contains this:
2021-10-30 20:05:44.984 48003 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Creating AAB base.zip
2021-10-30 20:05:44.988 48007 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Using extender binary for architecture: armv7-android
2021-10-30 20:05:44.988 48007 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Using extender binary for architecture: arm64-android
2021-10-30 20:05:44.989 48008 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Copying dex to /Users/gudkov-m/project/sola-spaco-2/game/build/armv7-android/classes.dex
2021-10-30 20:05:45.021 48040 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Copying asset /Users/gudkov-m/project/sola-spaco-2/game/build/default/game.projectc to /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base/assets/game.projectc
2021-10-30 20:05:45.022 48041 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Copying asset /Users/gudkov-m/project/sola-spaco-2/game/build/default/game.arci to /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base/assets/game.arci
2021-10-30 20:05:45.023 48042 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Copying asset /Users/gudkov-m/project/sola-spaco-2/game/build/default/game.arcd to /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base/assets/game.arcd
2021-10-30 20:05:45.025 48044 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Copying asset /Users/gudkov-m/project/sola-spaco-2/game/build/default/game.dmanifest to /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base/assets/game.dmanifest
2021-10-30 20:05:45.025 48044 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Copying asset /Users/gudkov-m/project/sola-spaco-2/game/build/default/game.public.der to /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base/assets/game.public.der
2021-10-30 20:05:45.026 48045 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Copying resources to /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base/res
2021-10-30 20:05:45.029 48048 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Copying engine to /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base/lib/armeabi-v7a/libUnboundBall.so
2021-10-30 20:05:45.052 48071 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - exec: /var/folders/d6/y7bbslgx5bb9_ctrmv_3hgqh0000gn/T/8575137655474031270/x86_64-darwin/strip_android /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base/lib/armeabi-v7a/libUnboundBall.so
2021-10-30 20:05:45.251 48270 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Copying engine to /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base/lib/arm64-v8a/libUnboundBall.so
2021-10-30 20:05:45.269 48288 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - exec: /var/folders/d6/y7bbslgx5bb9_ctrmv_3hgqh0000gn/T/8575137655474031270/x86_64-darwin/strip_android_aarch64 /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base/lib/arm64-v8a/libUnboundBall.so
2021-10-30 20:05:45.429 48448 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Zipping /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base to /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base.zip
2021-10-30 20:05:45.790 48809 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Creating Android Application Bundle
2021-10-30 20:05:45.967 48986 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - exec: /Applications/Defold.app/Contents/Resources/packages/jdk11.0.1-p1/bin/java -jar /var/folders/d6/y7bbslgx5bb9_ctrmv_3hgqh0000gn/T/8575137655474031270/bundletool-all.jar build-bundle --modules /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/aab/base.zip --output /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/UnboundBall.aab
2021-10-30 20:05:46.989 50008 [clojure-agent-send-off-pool-11] INFO c.dynamo.bob.bundle.AndroidBundler - Sign /Users/gudkov-m/project/sola-spaco-2/bundle/armv7-android/UnboundBall/UnboundBall.aab
Ok, I check the keystore aliases using this command:
keytool -v -list -keystore mykeystore.keystore
I get the following error:
keytool error: java.io.IOException: Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
java.io.IOException: Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
So it seems like the keystore isn’t using an algorithm known to the Java version in the editor or the one I have (JDK11). Which version of Java are you using?