MrKim Well-Known Member Licensed User Longtime User Sep 24, 2023 #1 I am trying to update an app. The last time I updated it I had this code: B4X: Copy #if AAB #SignKeyFile: D:\Android\KeyStores\DataCollection1.keystore #SignKeyPassword: adfaefef #SignKeyAlgorithm: -digestalg SHA1 -sigalg SHA256withRSA #end if I am now on B4A version 12.20 (64 Bit). When trying to build an app bundle I get this error: B4X: Copy jarsigner error: java.lang.IllegalArgumentException: key algorithm not compatible with signature algorithm A search for that led me here: Where @Erel said in post 3:, "This is not needed with B4A 11.0." So I commented the above and the the app bundle is created OK but when I try to upload it I get: B4X: Copy Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is signed with the correct signing key and try again. Your App Bundle is expected to be signed with the certificate with fingerprint: Etc.... Any help appreciated. Last edited: Sep 26, 2023
I am trying to update an app. The last time I updated it I had this code: B4X: Copy #if AAB #SignKeyFile: D:\Android\KeyStores\DataCollection1.keystore #SignKeyPassword: adfaefef #SignKeyAlgorithm: -digestalg SHA1 -sigalg SHA256withRSA #end if I am now on B4A version 12.20 (64 Bit). When trying to build an app bundle I get this error: B4X: Copy jarsigner error: java.lang.IllegalArgumentException: key algorithm not compatible with signature algorithm A search for that led me here: Where @Erel said in post 3:, "This is not needed with B4A 11.0." So I commented the above and the the app bundle is created OK but when I try to upload it I get: B4X: Copy Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is signed with the correct signing key and try again. Your App Bundle is expected to be signed with the certificate with fingerprint: Etc.... Any help appreciated.
Solution MrKim Sep 26, 2023 I resolved it. Once again I have egg on my face. I had the wrong file. I looked at old backups and for some reason I had changed the the file at some point.
I resolved it. Once again I have egg on my face. I had the wrong file. I looked at old backups and for some reason I had changed the the file at some point.
mcqueccu Expert Licensed User Longtime User Sep 24, 2023 #2 Remove only this line and try again B4X: Copy #SignKeyAlgorithm: -digestalg SHA1 -sigalg SHA256withRSA Upvote 0
Remove only this line and try again B4X: Copy #SignKeyAlgorithm: -digestalg SHA1 -sigalg SHA256withRSA
MrKim Well-Known Member Licensed User Longtime User Sep 24, 2023 #3 mcqueccu said: Remove only this line and try again B4X: Copy #SignKeyAlgorithm: -digestalg SHA1 -sigalg SHA256withRSA Click to expand... No joy. Compiles but still wrong key error. I notice the compiler now using different algo: B4X: Copy Signing AAB file (2.53s) Algorithm: -digestalg SHA1 -sigalg SHA256withDSA Upvote 0
mcqueccu said: Remove only this line and try again B4X: Copy #SignKeyAlgorithm: -digestalg SHA1 -sigalg SHA256withRSA Click to expand... No joy. Compiles but still wrong key error. I notice the compiler now using different algo: B4X: Copy Signing AAB file (2.53s) Algorithm: -digestalg SHA1 -sigalg SHA256withDSA
Erel B4X founder Staff member Licensed User Longtime User Sep 26, 2023 #4 MrKim said: I am now on B4A version 12.20 (64 Bit). Click to expand... Always use the latest version. You are using an old key that is no longer compatible with Google AAB requirements. The solution is to upload an APK instead of AAB. Upvote 0
MrKim said: I am now on B4A version 12.20 (64 Bit). Click to expand... Always use the latest version. You are using an old key that is no longer compatible with Google AAB requirements. The solution is to upload an APK instead of AAB.
MrKim Well-Known Member Licensed User Longtime User Sep 26, 2023 #5 I resolved it. Once again I have egg on my face. I had the wrong file. I looked at old backups and for some reason I had changed the the file at some point. Upvote 0 Solution
I resolved it. Once again I have egg on my face. I had the wrong file. I looked at old backups and for some reason I had changed the the file at some point.