https://kotlinlang.org logo
#android
Title
# android
d

dimsuz

09/23/2019, 5:57 PM
Does any one have ideas on why gradle could produce an unsigned apk? I do properly setup signing configs, I checked and rechecked. I even diffed my
build.gradle
with another project which has exaclty same signing configs and produces a signed apk, but this one isn't.
Copy code
$ jarsigner -verify /path/to/apk

jar is unsigned
stackoverflow 2
OK. Just found that downgrading minsdkversion to 23 (was 25) makes jar signed again
j

jw

09/23/2019, 5:59 PM
this is not related to Kotlin so you should ask on StackOverflow
you should be using apksigner to validate an apk, not jarsigner
d

dimsuz

09/23/2019, 6:00 PM
OK, sorry.
I would, but it seems crashlytics uses jarsigner, because it rejects my apk
j

jw

09/23/2019, 6:01 PM
you should reach out to their support and tell them that they're doing it wrong
d

dimsuz

09/23/2019, 6:01 PM
This is the plan, now that I just found out what causes this 🙂
j

jw

09/23/2019, 6:03 PM
There's more details at https://source.android.com/security/apksigning. v1 is only needed for old API levels and is not done by default for higher ones
d

dimsuz

09/23/2019, 6:04 PM
I tried to enable it explicitly, but it still failed to upload for some reason, maybe I've messed up something
3 Views