Install parse failed no certificates ошибка

I found this was caused by my JDK version.

I was having this problem with ‘ant’ and it was due to this CAUTION mentioned in the documentation:

http://developer.android.com/guide/publishing/app-signing.html#signapp

Caution: As of JDK 7, the default signing algorithim has changed, requiring you to specify the signature and digest algorithims (-sigalg and -digestalg) when you sign an APK.

I have JDK 7. In my Ant log, I used -v for verbose and it showed

$ ant -Dadb.device.arg=-d -v release install
[signjar] Executing 'C:Program FilesJavajdk1.7.0_03binjarsigner.exe' with arguments:
[signjar] '-keystore'
[signjar] 'C:cygwinhomeChloepairfinderrelease.keystore'
[signjar] '-signedjar'
[signjar] 'C:cygwinhomeChloepairfinderbinPairFinder-release-unaligned.apk'
[signjar] 'C:cygwinhomeChloepairfinderbinPairFinder-release-unsigned.apk'
[signjar] 'mykey'
 [exec]     pkg: /data/local/tmp/PairFinder-release.apk
 [exec] Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

I signed the JAR manually and zipaligned it, but it gave a slightly different error:

$ "$JAVA_HOME"/bin/jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore release.keystore -signedjar bin/PairFinder-release-unaligned.apk bin/PairFinder-release-unsigned.apk mykey
$ zipalign -v -f 4 bin/PairFinder-release-unaligned.apk bin/PairFinder-release.apk
$ adb -d install -r bin/PairFinder-release.apk
        pkg: /data/local/tmp/PairFinder-release.apk
Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]
641 KB/s (52620 bytes in 0.080s)

I found that answered here.

How to deal with INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES without uninstallation

I only needed to uninstall it and then it worked!

$ adb -d uninstall com.kizbit.pairfinder
Success
$ adb -d install -r bin/PairFinder-release.apk
        pkg: /data/local/tmp/PairFinder-release.apk
Success
641 KB/s (52620 bytes in 0.080s)

Now I only need modify the build.xml to use those options when signing!

Ok here it is: C:Program FilesJavaandroid-sdktoolsantbuild.xml

            <signjar
                    sigalg="MD5withRSA"
                    digestalg="SHA1"
                    jar="${out.packaged.file}"
                    signedjar="${out.unaligned.file}"
                    keystore="${key.store}"
                    storepass="${key.store.password}"
                    alias="${key.alias}"
                    keypass="${key.alias.password}"
                    verbose="${verbose}" />

In this post , we will see How To Fix – “INSTALL_PARSE_FAILED_NO_CERTIFICATES” Error in Android Studio. You see the below error in your Android Studio

Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES
List of apks:
[0] 'C:UsersUSER1AndroidStudioProjectsHelloWorldappbuildoutputsapkdebugapp-debug.apk'
APK signature verification failed.
Retry

After developing an Android App , the obvious next step is to publish it for public use.

However to publish the App on Playstore , you do need to sign the app in Android Studio. Hence it is a mandatory step.


if( aicp_can_see_ads() ) {

}

Option 1 – First Time User:

If you are using installing and setting up your Android Studio for the “First time”, you might have created a demo app in the process flow. Sometimes initially when you are setting up the Android Studio environment for the first time, things get a bit messed up while running the demo app in emulator . This leads to logging the error – “INSTALL_PARSE_FAILED_NO_CERTIFICATES”.

So try the below steps to fix –

  • Click File –> Open –> Note the Folder Location. This folder holds the project files of the demo app that you have created.
  • Close the Android Studio
  • Go to the Folder Location and delete the project folder and all the files therein (Here I am assuming it is just a first initial demo app project – not something immensely IMPORTANT or crucial)
  • Open the Android Studio now —> Start New Project —-> Create demo app again
  • Run the app through the android emulator again. Hopefully this time the error should vanish by now.


if( aicp_can_see_ads() ) {

}

Option 2 – Build using “Make Project”:

  • Use the options from the Menu

Build —-> Make Project

The “Make Project” option is one of the build-variant . It Makes all the modules as part of the Build option to compile.

Option 3 – Signature Configuration:

The Signature configuration can also cause this issue especially if you are still using an older version of Android.

The older signature scheme V1 signs just the JAR.


if( aicp_can_see_ads() ) {

}

The later signature scheme V2 signs the entire APK.

For Older version of Android Studio , to solve this issue , get the APK signed with both of these schemes by checking both signature version boxes in Android Studio’s Generate Signed APK dialog .

For Latest Versions of Android Studio , to Solve this issue , use the below steps –

I am assuming that you don’t already have an upload key. So Let’s generate one key using Android Studio as follows:

  • Go Menu —> Build —-> Generate Signed Bundle/APK.
  • A Dialog will popup. Select Android App Bundle or APK —-> click Next.
  • In the new popup, below the field for Key store path , click Create new.
  • A new window will popup. In this New Key Store window, provide the information for keystore and key
    • Key store path: Location where keystore should be created.
    • Password: Password for keystore.
    • Alias: Use some name for your key.
    • Password: Use some secure password for your key – Different from the keystore password.
    • Validity (years):  key validity in years. Key should be valid for at least 25 years . This would help you to sign app updates with the same key for many years.
    • Certificate: Use info about yourself . This information will not be displayed in the app, but will be included in the certificate as part of the APK.
  • All done – click OK.


if( aicp_can_see_ads() ) {

}

If you already have the key , export an existing app signing key, follow these steps:

  • Go to Build > Generate Signed Bundle/APK.
  • Select either Android App Bundle or APK and click Next.
  • Select Module from the drop down.
  • Use the path to your keystore, the alias for your key and passwords.
  • Click Next.
  • Next window , Give Destination folder name for signed app.
  • Choose build type.
  • Click Finish.

Hope this helps to fix the issue.


if( aicp_can_see_ads() ) {

}

Other Interesting Reads –

  • How To Fix – “Ssl: Certificate_Verify_Failed” Error in Python ?

  • How To Fix – Cluster Configuration Issue in Kafka ?

  • How To Fix – “Cannot import name ‘main’” Error in Python ?

  • How To Fix – Partitions Being Revoked and Reassigned issue in Kafka ?

  • How to log an error in Python ?

  • How to Code Custom Exception Handling in Python ?

  • How to Handle Bad or Corrupt records in Apache Spark ?

  • How To Fix Kafka Error – “apache.kafka.common.errors.TimeoutException”

  • How to Handle Errors and Exceptions in Python ?
  • Fix Various Indentation Errors in Python

install_parse_failed_no_certificates android studio ,install_parse_failed_no_certificates android 11 ,install_parse_failed_no_certificates android studio 3.5 ,android emulator install_parse_failed_no_certificates ,android apk signature verification failed ,android studio install_parse_failed_no_certificates apk signature verification failed ,android studio emulator install_parse_failed_no_certificates ,android studio debug install_parse_failed_no_certificates ,android studio run install_parse_failed_no_certificates ,android studio 4 install_parse_failed_no_certificates ,android studio install_parse_failed_no_certificates ,android emulator install_parse_failed_no_certificates ,android studio emulator install_parse_failed_no_certificates ,android studio debug install_parse_failed_no_certificates ,android studio 3.5 install_parse_failed_no_certificates ,android studio 4 install_parse_failed_no_certificates ,android studio run install_parse_failed_no_certificates ,Android INSTALL_PARSE_FAILED_NO_CERTIFICATES ,android emulator install_parse_failed_no_certificates ,android studio emulator install_parse_failed_no_certificates ,android studio debug install_parse_failed_no_certificates ,android studio run install_parse_failed_no_certificates ,android studio 3.5 install_parse_failed_no_certificates ,android studio 4 install_parse_failed_no_certificates ,android apk install_parse_failed_no_certificates ,android the application could not be installed install_parse_failed_no_certificates ,com.android.ddmlib.installexception install_parse_failed_no_certificates ,android error install_parse_failed_no_certificates ,android failure install_parse_failed_no_certificates ,android install install_parse_failed_no_certificates ,install_parse_failed_no_certificates android studio ,install_parse_failed_no_certificates android studio 3.5 ,android studio debug apk on device ,android studio install_parse_failed_no_certificates apk signature verification failed ,android apk install install_parse_failed_no_certificates ,failure install_parse_failed_no_certificates android studio ,android adb install install_parse_failed_no_certificates , ,android apk signature verification failed ,android apk signature verification failed app ,android apk signature verification failed automatically ,android apk signature verification failed because ,android apk signature verification failed binance ,android apk signature verification failed disable ,android apk signature verification failed download ,
android apk signature verification failed error ,android apk signature verification failed game ,android apk signature verification failed git ,android apk signature verification failed github ,android apk signature verification failed gmail ,android apk signature verification failed how to fix ,android apk signature verification failed hp ,android apk signature verification failed jailbreak ,android apk signature verification failed java ,android apk signature verification failed jio ,android apk signature verification failed key ,android apk signature verification failed knight ,android apk signature verification failed kyc ,android apk signature verification failed letter ,android apk signature verification failed mac ,android apk signature verification failed missing ,android apk signature verification failed mobile ,android apk signature verification failed offline ,android apk signature verification failed online ,android apk signature verification failed question ,android apk signature verification failed queue ,android apk signature verification failed quora ,android apk signature verification failed required ,android apk signature verification failed try again ,android apk signature verification failed twrp ,android apk signature verification failed uan ,android apk signature verification failed ubuntu ,android apk signature verification failed unable to connect ,android apk signature verification failed unknown error ,android apk signature verification failed update ,android apk signature verification failed us ,android apk signature verification failed validation ,android apk signature verification failed version ,android apk signature verification failed virus ,android apk signature verification failed vpn ,android apk signature verification failed vulnerability ,android apk signature verification failed windows ,android apk signature verification failed windows 10 ,android apk signature verification failed xbox one ,android apk signature verification failed xiaomi ,android apk signature verification failed xml ,android apk signature verification failed xp ,android apk signature verification failed yarn ,android apk signature verification failed yet ,android apk signature verification failed you ,android apk signature verification failed youtube ,android apk signature verification failed zip ,android apk signature verification failed zip file ,android studio install_parse_failed_no_certificates apk signature verification failed ,apk signature check ,apk signature verification ,apk signature verification failed ,apk signature verification failed android studio ,apk signature verification online ,signature verification failed android ,android adb install_parse_failed_no_certificates ,android apk install_parse_failed_no_certificates ,android emulator install_parse_failed_no_certificates ,android error install_parse_failed_no_certificates ,android failure install_parse_failed_no_certificates ,android install install_parse_failed_no_certificates ,android install_parse_failed_no_certificates ,android install_parse_failed_no_certificates login ,android install_parse_failed_no_certificates package ,android install_parse_failed_no_certificates xamarin ,android studio 3.5 install_parse_failed_no_certificates ,android studio 4 install_parse_failed_no_certificates ,android studio debug install_parse_failed_no_certificates ,android studio emulator install_parse_failed_no_certificates ,android studio run install_parse_failed_no_certificates ,android the application could not be installed install_parse_failed_no_certificates ,com.android.ddmlib.installexception install_parse_failed_no_certificates ,failure install_parse_failed_no_certificates android studio ,install_parse_failed_no_certificates android studio ,install_parse_failed_no_certificates android studio 3.5


if( aicp_can_see_ads() ) {

}

I have been developing and installing my apk on the android emulator, and on a physical device with no issues.

Then all of a sudden, I am getting an error when installing. The only thing I can think of that changed was I deleted and regenerated my pubspec.lock.

I build and install with the commands…

flutter build apk --debug
flutter instal apk

When install on a physical device I get…

Package install error: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
Install failed

When install on the emulator I get…

adb: failed to install /home/user/src/MobileApp/build/app/outputs/flutter-apk/app.apk: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: Package
/data/app/vmdl770003105.tmp/base.apk has no certificates at entry AndroidManifest.xml]
Install failed

I have noticed when I build, in ~/.android folder, a debug.keystore.lock file is created, but never deleted. I can manually delete it, but every subsequent build process creates this build file and does not delete it.

Flutter doctor…

✓] Flutter (Channel stable, 1.22.5, on Linux, locale en_CA.UTF-8)
    • Flutter version 1.22.5 at /usr/local/flutter-sdk
    • Framework revision 7891006299 (11 days ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /usr/local/android-sdk
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /usr/local/android-sdk
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-0ubuntu1~20.04-b01)
    • All Android licenses accepted.

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).

[✓] VS Code (version 1.52.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.17.0

[✓] Connected device (1 available)
    • Lenovo TB3 X70F (mobile) • *JHD874JBNA73B • android-arm64 • Android 6.0 (API 23)

! Doctor found issues in 1 category.

Asked
13 years, 9 months ago

Viewed
2k times

I am trying to install XMPP client on Android through adb install command but it gives INSTALL_PARSE_FAILED_NO_CERTIFICATES error, if anybody know about this error please help me

Please tell how test XMPP client on Android emulator.

  • android
  • xmpp

curiousMind's user avatar

curiousMind

2,8141 gold badge16 silver badges38 bronze badges

asked Sep 14, 2009 at 14:18

Abhijit's user avatar

AbhijitAbhijit

4111 gold badge5 silver badges6 bronze badges

5

  • People are less likely to help you if you don’t accept their answers. Several of your other questions have valid (yet unaccepted) answers. That said, I’m not sure what to tell you. What XMPP client are you trying to install?

    Sep 15, 2009 at 3:18

  • Trying to install Gtalk client

    Sep 15, 2009 at 4:24

  • Details, brother! Which client — where did you get it, etc.

    Sep 15, 2009 at 5:36

  • Hi Abhijit, I cant downlaod client from this link davanum.wordpress.com/2007/11/23/… Cuould make make avaiable to me that source becouse i am also working on Gtalk client and assume that code could help me . Thanks Ijaz

    May 11, 2011 at 11:50

1 Answer

It seems your APK file is not signed.

answered Sep 15, 2009 at 22:39

Lucas S.'s user avatar

Lucas S.Lucas S.

13.3k8 gold badges46 silver badges46 bronze badges

  • The Overflow Blog
  • Featured on Meta

Related

Hot Network Questions

  • Why is there current if there isn’t any potential difference?

  • Why does voltage increase in a series circuit?

  • Is this photo of the Red Baron authentic?

  • What does the yellow dot next to a dungeon indicate?

  • Possible plot hole in D&D: Honor Among Thieves

  • How many numbers can I generate and be 90% sure that there are no duplicates?

  • Can you aid and abet a crime against yourself?

  • Can the Wildfire Druid ability Blazing Revival prevent Instant Death due to massive damage or disintegrate?

  • I am trying to identify this bone I found on the beach at the Delaware Bay in Delaware. It is 2 1/2 inches wide and 1 1/2 tall

  • Paper with potentially inappropriately-ordered authors, should a journal act?

  • Is there a word that’s the relational opposite of «Childless»? (Specifically for when trying to categorize an adult)

  • If we encounter what appears to be an advanced extraterrestrial technological device, would the claim that it was designed be falsifiable?

  • How can I practice this part to play it evenly at higher bpm?

  • Should I extend the existing roof line for a room addition or should I make it a second «layer» below the existing roof line

  • How do I continue work if I love my research but hate my peers?

  • Is diagonalizability a local property?

  • Fantasy book series with heroes who exist to fight corrupt mages

  • Can I fly to a class D airport with an NPPL?

  • Reductive instead of oxidative based metabolism

  • Zoom to Maximum Raster Cell Value

  • Has there ever been a C compiler where using ++i was faster than i++?

  • Definition of «Victorian vandal»

  • Calculating the average of one field dependent on another in QGIS

  • How does light effect interact with Otiluke’s Resilient Sphere?

more hot questions

Question feed

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

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 SettingsUser.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

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 SettingsUser.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

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

Opinions expressed by DZone contributors are their own.

Trending

  • Knowing and Valuing Apache Kafka’s ISR (In-Sync Replicas)

  • Tech Hiring: Trends, Predictions, and Strategies for Success

  • Mastering Time Series Analysis: Techniques, Models, and Strategies

  • Observability Architecture: Financial Payments Introduction

Понравилась статья? Поделить с друзьями:
  • Instagram ошибка повторите попытку через несколько минут
  • Instagram ошибка повторите попытку позже для защиты нашего сообщества
  • Instagram не могу войти ошибка
  • Instagram к сожалению произошла ошибка повторите попытку позже
  • Inst 08104 04 ошибка ман тга