Hi!
Katalon 9.7.2
Mac OS 15.0
Getting such list of issues when try to run Sample Android Mobile Tests Project ([Mobile] Configure Android Emulator | Katalon Docs)
Original error: An unknown server-side error occurred while processing the command.
Original error: Cannot verify the signature of ‘/Users/user/Katalon Studio/Test Android Emulator/androidapp/APIDemos.apk’.
Original error: The operation couldn’t be completed. Unable to locate a Java Runtime.
Can anyone help me with fixing, please?
1 Like
Hi @daristarkhov,
Welcome to our community. Thank you for sharing your issue. I would love to suggest you doing as follow:
It seems like you’re encountering multiple issues when trying to run the Sample Android Mobile Tests Project in Katalon 9.7.2 on macOS 15.0. Here’s a breakdown of the errors you’re facing and how to potentially resolve them:
1. Error: Cannot verify the signature of ‘APIDemos.apk’
This error likely indicates an issue with the APK file (either it’s unsigned or the signature is problematic). Here’s how to resolve this:
-
Re-sign the APK: You can re-sign the APK using Android tools (like jarsigner or Android Studio) or manually:
- Use
jarsigner to sign the APK:jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore <path_to_keystore> <path_to_apk> alias_name
- Make sure the APK is then properly aligned:
zipalign -v 4 <path_to_unsigned_apk> <path_to_signed_apk>
-
Use a different APK: If you’re working on a sample project, try downloading a fresh version of the APIDemos.apk from the Android SDK or the official sources to avoid any corruption or signing issues.
2. Error: Unable to locate a Java Runtime
This error typically occurs when Java is not installed or configured correctly on your Mac. Katalon Studio requires Java to run properly.
Steps to resolve:
-
Install Java: You can download and install the latest Java Development Kit (JDK) from Oracle’s official site or use the OpenJDK available via Homebrew.
brew install openjdk
-
Set JAVA_HOME environment variable:
After installing Java, make sure the JAVA_HOME variable is set correctly. You can do this by adding the following to your .bash_profile (or .zshrc if using Zsh):
export JAVA_HOME=$(/usr/libexec/java_home)
Then, reload the terminal by running:
source ~/.bash_profile # or source ~/.zshrc
-
Check if Java is properly installed:
Run the following command to check if Java is recognized:
java -version
If Java is correctly installed and configured, it should return the installed version of Java.
Try these steps, and let me know how it goes!
Thank you very much for your help!
if the issue is resolved, kindly mark appropriate reply as solution