"Application not installed" when installing an self-signed apk on SD-card

16,208

Solution 1

If the two .apks have different signatures (Eclipse uses a debug certificate), you will not be able to install/update with the new .apk without removing the previous one.

You can find more information about this here.

Solution 2

The problem seems to be that I first installed the app via Eclipse (launching/debugging from Eclipse).

When the app was installed that way, and I then tried to reinstall from APK, it didn't work.

However, if I completely uninstalled the app first, then reinstalled from APK-file the installation was successful. It was also possible to reinstall (with an updated APK) after that!

Solution 3

I also encountered this issue. Kindly try this solution. Make sure that the package name of your project is different from your previous project that was already installed in your mobile phone. I think they get conflict in their names. It resolved my problem.

Share:
16,208
Ted
Author by

Ted

Been programming since around the year 2000 where I started out with C# and PHP for different projects, and since quickly learned to love .NET and C#, which has grown from good to GREAT. Have dabbled with JAVA, Java for Android, PHP, JS, CSS, HTML, but C# is my thing.

Updated on June 05, 2022

Comments

  • Ted
    Ted almost 2 years

    * EDIT 1 * Of course, just after I posted i tried to uninstall the app, and then reinstall it from APK. Then it worked. Maybe its the fact that I usually install it from Eclipse that is the bad thing here? Testing

    /EDIT

    So I am having the problem that my fine APK-files wont install om my device.

    I found another who had the same problem, and solved it by self-signing: unsigned APK can not be installed

    However, I always tried with a signed APK. In Eclipse, I choose "Export" and then I have to first choose and "log in to" my keystore, then choose a key and again supply my password, and then choose the location for the file, and press "Finish".

    This is the last "page" in the wizard:

    enter image description here

    After I copy that APK-file to my device, and then "run it" from the file explorer, the Install-screen shows upp and looks OK. First I get the "Replace application"-screen, asking me if I want to replace the existing version. I press "OK". Then it asks me if I want to allow the application to ... yada yada. I press "Install". After a brief message saying "Installing" I get the message:

    Application not installed

    with a green "check" to the left of it.

    No other error messages.

    I have checked the box "Unknown sources". I might add that there are no problems when I launch the same app from Eclipse!

    Any tips and ideas would be appreciated.