Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

False "Generate Signed APK - APK(s) generated successfully" message pop-up every time I do a build (after generating a signed apk once)

This is happening across all projects for me. When I generate a signed apk from Android Studio I get the following message which is correct:

enter image description here

Problem: After this I continue getting this message for every build that happens for the project, when I'm not actually generating a signed apk.

I checked the destination folder to see if the apk is actually getting generated but it is not. Then why do I get the message? After restarting Android Studio it stops.

Is this a misconfiguration in the project or settings or is it a bug in Android Studio? I'm using Android Studio 1.5.1

Update: I do not wish to disable lint and suppress the issue. I'm actually looking for a real fix (probably a configuration or settings change in the IDE or gradle files)


As mentioned in the answer I accepted, by user2082415, this is a bug in Android Studio. I'm following the bug report now and will update this post with a solution when available.

Here is the link for the bug report

like image 469
AndroidMechanic - Viral Patel Avatar asked Jan 19 '16 09:01

AndroidMechanic - Viral Patel


People also ask

What does signed APK mean?

A signed apk is an android package file that has been digitally singed with a certificate for which the developer holds the private key. When you are doing developing your application a special debug key is created by the dev tools.

What is APK signing in Android?

Application signing ensures that one application cannot access any other application except through well-defined IPC. When an application (APK file) is installed onto an Android device, the Package Manager verifies that the APK has been properly signed with the certificate included in that APK.

Which file is used to generate signed APK?

To generate a signed APK file, open the Build menu from the toolbar and select Generate Signed Bundle/APK. This opens up a screen where you have to select between creating an Android App Bundle and creating an APK file.


2 Answers

I have a similar problem with the "Build APK APK(s) generated successfully." message. You can find a bugreport concerning this issue behind the following link. The more people vote for this issue, the soner it will get fixed.

Link to Bug Report

like image 130
user2082415 Avatar answered Sep 28 '22 01:09

user2082415


here is what you can do while building the app moniter the event log this problem might be of the android lint.Due to lint errors the app is not built.Solve those issues or if you want to by pass the lint you will have to write the following in your build.gradle file

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
    }
}
like image 23
Avinash Joshi Avatar answered Sep 28 '22 02:09

Avinash Joshi