0

Over the weekend something happend, because on monday it wasn't possible anymore to make a signed production build of my App. The only thing that I installed was Ableton Live 11 but I don't see how this could be related. I use "Generate Signed Bundle / APK" to make sure the signingConfigs in build.gradle are not the problem.

When running from Android Studio it showed this:

enter image description here

When uploading the APK on APKPure it showed that the apk wasn't valid:

enter image description here

Steps that I've tried so far:

  • Tried different projects, all projects are unable to sign, so it's not the specific project.
  • Uninstalled Android Studio from this SO thread.
  • I've found the Signature mentioned on apkpure in google-services.json and I've deleted this, but same result.
Jim Clermonts
  • 1,694
  • 8
  • 39
  • 94
  • Which way you build the apk? [Build Bundle(s) / APK(s) > Build APK(s)] or [Generate Signed Bundle / APK...] – xYuri Jul 06 '21 at 18:19
  • I use "Generate Signed Bundle / APK" to make sure the signingConfigs in build.gradle are not the problem. – Jim Clermonts Jul 06 '21 at 20:34
  • When you build via "Generate Signed Bundle / APK", didn't you change to `debug` or any other not-`release` configuration? – CoolMind Jul 06 '21 at 21:05
  • @JimClermonts when trying, you only tried with 1 sign or more? maybe the sig itself is corrupted, but then it shouldn't be building at all. – xYuri Jul 07 '21 at 06:00
  • @xYuri I tried different projects. Same result. The problem is not in the project – Jim Clermonts Jul 07 '21 at 10:15
  • @JimClermonts I am not talking about the project, am talking about the signature (the keystore), did you try with a new keystore? – xYuri Jul 07 '21 at 10:46
  • No I have this production keystore and I don't want users to uninstall the existing App – Jim Clermonts Jul 08 '21 at 09:39

1 Answers1

-1
  • You probably changed the KeyStore of your app.

  • Make sure that in build.gradle, the signingConfig-attribute of debug{} and release{} in buildTypes{} have the same value and debug{} has the attribute debuggable true

Source: https://stackoverflow.com/a/27873028

Cactusroot
  • 1,019
  • 3
  • 16
  • Build variant is not related to the OP, as he is Generating Signed Bundle / APK, he has to provide the sig and the path and selecting the variant manually. – xYuri Jul 07 '21 at 06:02