Cannot Unlock Debug Keystore + Build Failed 256

I’m using Corona 3726 on a Macbook running Sequoia Version 15.6.1

I want to build a game for Android and I’ve installed Android Studio to make sure I get any dependencies I may need from it like Android SDK, Java and gradle. I have java version “1.8.0_471” installed.

When I try to follow the instructions in Signing and Building — Android and follow the Signing for Debug Build section, entering android as the password for the debug.keystore is not working.

I get this error:
The password for the alias androiddebugkey in Keystore located at /Applications/Corona-3726/Resource Library/Android/debug.keystore is not correct or the file is not a valid Keystore

Build fails with Error code: 256

Does your Apple Silicon Mac have Rosetta installed? Try installing Rosetta or via command line.

Duplicated of debug.keystore doesn't work - #4 by umalemon

The main reason is that built-in tool is not universal but x86, so Rosetta conversion is needed.

Thanks for your reply. When I tried installing Rosetta via command line. When I run:
softwareupdate --install-rosetta

I get this output:
Installing Rosetta 2 on this system is not supported.

I have a MacBook Pro 2019 with Intel Core i9.

This might be related to what @umalemon mentioned here: debug.keystore doesn't work - #6 by umalemon

Rosetta is a solution that makes Apple Silicon (e.g. M1-M4) mimic Intel CPUs, so it cannot be installed on Intel Macs, and there is no need to.

A long time ago (when I was using Intel Macs), I remember having trouble with keystore authentication due to the Java version.

Looking at your log, it seems like a Java-related warning is being displayed. I’ve seen that the latest Solar2D installation requirements state that Java does not need to be installed. Trying it in a clean environment might help.