DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > Android: Solution "Install Parse Failed No Certificates"

Android: Solution "Install Parse Failed No Certificates"

Harsha Vardhan user avatar by
Harsha Vardhan
·
Jun. 04, 14 · Mobile Zone · Interview
Like (0)
Save
Tweet
119.68K Views

Join the DZone community and get the full member experience.

Join For Free

When I am trying to install a third party apk using the ADB tool, I have faced "Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]" error.

To resolve the issue, I have followed these few steps.

Open command prompt; Go to your debug.keystore location.

For eg:

You can find the debug.keystore file in the following location

C:\Documents and Settings\User\.android

1. Using Zip align copied apk.

zipalign -v 4 D:\Test.apk D:\Testc.apk

2. keytool -genkey -v -keystore debug.keystore -alias sampleName -keyalg RSA -keysize 2048 -validity 20000

Now a prompt will ask for

  • Password
  • First and lastname
  • Name of Organization unit
  • Name of Organization
  • City
  • State
  • Country

After entering these fields we get our Certificate

3. jarsigner -verbose -keystore debug.keystore D:\Testc.apk sampleName


In some cases we need add -sigalg SHA1withRSA -digestalg SHA1 arguments to work out the step 3

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore debug.keystore D:\Testc.apk sampleName
Now it will ask for the password and then it will replace the apk with the signed one.

To check whether it is working or not, you can check using the following command.

jarsigner -verify D:\Testc.apk

Then I have installed apk using ADB.

Adb install D:\Testc.apk

Thanks for reading :)

Origin: Vardhan Blog - "install parse failed no certificates" 

Android (robot) Command (computing) EGS (program) Blog

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • OPC-UA, MQTT, and Apache Kafka: The Trinity of Data Streaming in IoT
  • Choosing Between GraphQL Vs REST
  • Growth in Java Development for Web and Mobile Apps
  • The Right Way to Hybridize Your Product Development Technique

Comments

Mobile Partner Resources

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo