Android Studio Generate Signed APK - Sign APK

0

I created an application on Android and I generated a first APK signed through Android Studio and I have a .jks file, once I signed the APK I modified some things in the code and when wanting to re-generate the signed APK I skipped the next error I do not know how to solve and I can not get a new APK:

Lint found fatal errors while assembling a release target.

To proceed, either fix the issues identified by lint, or modify your build script as follows:
...
android {
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
}
...

Does anyone know what is going on? Thanks.

    
asked by pAStudio 06.05.2018 в 17:15
source

1 answer

1

I have managed to solve this problem and wanted to comment on it if someone else happens and does not go crazy, because the tracks that Android Studio generates for this case are not clear and does not indicate what the problem is explicitly.

For my APP I have created several "Strings" in the values folder to perform the internationalization and it can be seen in different languages, the problem is (although in some Android documentation I saw that it was not necessary) all must be the same, that is if you put a string "app_name", this should appear in all the strings (in some Android documentation as I said it indicated that Android always searches in the main string and if it was not in that file, then it would go to the next one string but it was not necessary to appear in all the strings).

In short, in debug mode there is no problem, but in release mode to fim the APK it is necessary that all the strings have the same fields, this resolves this concrete problem of the APK signature.

Greetings.

    
answered by 15.07.2018 в 14:06