Android Studio generated APK installs in debug but not release

rkulp
rkulp used Ask the Experts™
on
I have written a small app in Android Studio which is targeted for API 23 (6.0 Marshmallow) which is what is on my phone. It installs and runs perfectly in debug mode but when I have Android Studio generate a signed APK, the signed APK does not install and has either "App not installed" or "There was a problem parsing the package." I have tried every trick I can find online to no avail. The phone is set to install from unknown sources; the targeted API is what is installed on my phone; and I have not renamed the package. I get the same results from APKInstaller, AndExplorer and just tapping the package in File Manager. Also, I get the same results when the apk is on the SD or internal storage.
I would greatly appreciate help on this problem.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Manager
Top Expert 2010
Commented:
Give details on how you generate a signed APK.

https://developer.android.com/studio/publish/app-signing.html

Have you tried to install the .apk file in another android device?

Author

Commented:
Jackie,

Thanks for your reply and link. I was using the "Generate Signed APK" using my existing keystore. When doing that, it shows the passwords as dots and I assumed that meant they were remembered which is common in some programs. I expect they were not. I then used the automatic generation of the signed APK which I found in the link. I had to manually put in the passwords. It worked fine this time. Thanks for your excellent help.

Author

Commented:
Thanks very much.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial