Avatar of rkulp
rkulpFlag for United States of America

asked on 

Android Studio generated APK installs in debug but not release

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.
* ParsingAndroidSmartphone Programming

Avatar of undefined
Last Comment
rkulp
ASKER CERTIFIED SOLUTION
Avatar of Jackie Man
Jackie Man
Flag of Hong Kong image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of rkulp
rkulp
Flag of United States of America image

ASKER

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.
Avatar of rkulp
rkulp
Flag of United States of America image

ASKER

Thanks very much.
Smartphone Programming
Smartphone Programming

Smartphones run using a variety of operating systems -- Android, iOS and Windows Mobile most commonly -- and an even wider variety of programming languages, including Objective-C, Java, Visual C#, C++ and .NET, not to mention HTML5 and JavaScript, and cross-platform frameworks such as PhoneGap.

8K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo