You uploaded an APK with an invalid signature

2

I put my apk on the console and gave this error.

  

Upload failed You uploaded an APK with an invalid signature. Aparsigner error: ERROR: JAR_SIG_NO_SIGNATURES: No JAR signatures

I use ide android studio, I signed the apk but it contains this at the time of sending, my manifest gets an error. I do not know what to say.

<meta-data android:name="android.support.VERSION" android:value="26.0.0-alpha1" />
    
asked by anonymous 20.08.2017 / 19:56

2 answers

1

Following the steps showing how to create a key and manually subscribe to a APK reminding you that android-studio currently also allows you to set up the build process for automatic APK signing


In the

  • Click Build → Generate Signed APK .

  • Select a module from the drop-down list and click Next .

  • Create or select existing key

    • Create - If you do not have a keystore or want to create a new one

    • Click Create new to create a new key and key repository.
    • In the New Key Store window, provide the information

      • Key store path : location where the key store should be created.
      • Password : create and confirm a secure password for repositório de chaves
      • Alias : Enter an identification name for the key.
      • Password : Create and confirm a secure password for chave . This password must be different from the password chosen for repositório de chaves
      • Validity (years) : Set the key's validity period, in years. The key must be valid for 25 years or more so that it is possible to sign application updates with the same key over the life of the application.
      • Certificate : Enter some personal information for the certificate. This information does not appear in the application but is included in the certificate as part of the APK.
      • After completing the form, click OK .
    • Select - If you already have a keystore
      (If you just created the key repository, those fields will already be filled in.)

      • Key store path : Select a key repository.
      • Key store password : Enter the repositório de chaves password.
      • Key alias : select the key
      • Key password : Enter the password for chave

      • Click Next

  • In the next window,

    • Select a destination for the signed APKs
    • Build Type : Select the build type,
    • Flavors : Choose variations of the product (if applicable),
    • Signature Versions : Check the versions of the desired signature (here I usually frame them all)
    • And click Finish


  • imageshowingthelastscreen

    Sources: developer.android.com , in.SO

        
    01.12.2018 / 04:56
    1

    Open the file /Android/gradle.properties and include the following information:

    MYAPP_RELEASE_STORE_FILE=nome-da-sua-chave.keystore
    MYAPP_RELEASE_KEY_ALIAS=nome-do-seu-alias
    MYAPP_RELEASE_STORE_PASSWORD=*****
    MYAPP_RELEASE_KEY_PASSWORD=*****
    

    And in the android/app/build.gradle file, include:

    ...
    android {
        ...
        defaultConfig { ... }
        signingConfigs {
            release {
                if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
                    storeFile file(MYAPP_RELEASE_STORE_FILE)
                    storePassword MYAPP_RELEASE_STORE_PASSWORD
                    keyAlias MYAPP_RELEASE_KEY_ALIAS
                    keyPassword MYAPP_RELEASE_KEY_PASSWORD
                }
            }
        }
        buildTypes {
            release {
                ...
                signingConfig signingConfigs.release
            }
        }
    }
    ...
    
        
    26.01.2018 / 00:39