cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

APK file from MDK app, signature verification failed

curtiskettler
Explorer
0 Kudos
672

Hello,

I have an MDK application that I am trying to get running on a fleet of Android devices using an APK file. I have created the APK file using Mobile Build in Mobile Services. The build completes successfully with no issues. However when I try to install the file on my devices I get the error: "App not installed as package appears to be invalid".

I tried running the APK file in Android Studio on an emulator and I get the following error message:
Screenshot 2025-01-14 at 5.20.24 PM.png

There seems to be some issue with the signature but I can't determine what might be causing this. I have created APK files from Mobile Services in the past with no issues.

mobile development kit client SAP Mobile Platform Android SAP BTP SDK for Android 
@bill_froelich 

View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

@Jakub_Szaek When you created your sigining profile in the cloud what expiration did you use?  There was an issue when using the default expiration of 25 years that could be worked around by selecting a lower expiration (like 24 years).  I would suggest trying that to see if it makes any difference.

Jakub_Szaek
Discoverer
0 Kudos
I have tried 25, 24 and 1 year, none of them worked. I have fixed that issue via creating my signing in cmd: keytool -genkeypair -v -keystore my-app.keystore -alias my-alias -keyalg RSA -keysize 2048 -validity 10000. Generated signings for some reasons work in cloud build, but my android device (android 15) finds them as corrupted.