Skip to main content

Only a month ago, running an app through the Android Studio emulator was running fine.  Now I'm warmly greeted by

Error
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES

The complete error is 

Launching '{project}' on Pixel 5 API 33.
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_NO_CERTIFICATES

List of apks:
[0] '/Users/andrewfletcher/Apps/{project}/android/app/build/intermediates/extracted_apks/release/base-en.apk'
[1] '/Users/andrewfletcher/Apps/{project}/android/app/build/intermediates/extracted_apks/release/base-master_2.apk'
[2] '/Users/andrewfletcher/Apps/{project}/android/app/build/intermediates/extracted_apks/release/base-xxhdpi.apk'
[3] '/Users/andrewfletcher/Apps/{project}/android/app/build/intermediates/extracted_apks/release/base-x86_64_2.apk'
APK signature verification failed.
Retry
Failed to launch an application on all devices

 

Initially, to resolve this issue, there are two areas of focus:

  • INSTALL_PARSE_FAILED_NO_CERTIFICATES; and
  • APK signature verification failed.

 

While attempting that option, I wanted to attempt a run command prompt

nix cap run android

Response

✔ Please choose a target device: › Pixel 5 API 33 (emulator) (Pixel_5_API_33)
✖ Running Gradle build - failed!
[error] Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use
        --status for details

        > Configure project :app
        WARNING:Using flatDir should be avoided because it doesn't support any
        meta-data formats.

        > Configure project :capacitor-cordova-android-plugins
        WARNING:Using flatDir should be avoided because it doesn't support any
        meta-data formats.

        > Task :capacitor-android:preBuild UP-TO-DATE
        > Task :capacitor-android:preDebugBuild UP-TO-DATE
        > Task :capacitor-android:compileDebugAidl NO-SOURCE
        > Task :capacitor-app:preBuild UP-TO-DATE
        > Task :capacitor-app:preDebugBuild UP-TO-DATE
        > Task :capacitor-app:compileDebugAidl NO-SOURCE
        > Task :capacitor-app:mergeDebugJniLibFolders
        > Task :capacitor-app:mergeDebugNativeLibs NO-SOURCE
        > Task :capacitor-app:stripDebugDebugSymbols NO-SOURCE
        > Task :capacitor-android:compileDebugRenderscript NO-SOURCE
        > Task :capacitor-app:copyDebugJniLibsProjectAndLocalJars
        > Task :capacitor-android:generateDebugBuildConfig
        > Task :capacitor-android:generateDebugResValues
        > Task :capacitor-android:generateDebugResources
        > Task :capacitor-android:packageDebugResources
        > Task :capacitor-android:packageDebugRenderscript NO-SOURCE
        > Task :capacitor-app:compileDebugRenderscript NO-SOURCE
        > Task :capacitor-android:javaPreCompileDebug
        > Task :capacitor-app:generateDebugBuildConfig
        > Task :capacitor-app:generateDebugResValues
        > Task :capacitor-app:generateDebugResources
        > Task :capacitor-app:packageDebugResources
        > Task :capacitor-app:parseDebugLocalResources
        > Task :capacitor-app:javaPreCompileDebug
        > Task :capacitor-app:mergeDebugShaders
        > Task :capacitor-app:compileDebugShaders NO-SOURCE
        > Task :capacitor-app:generateDebugAssets UP-TO-DATE
        > Task :capacitor-android:parseDebugLocalResources
        > Task :capacitor-app:packageDebugAssets
        > Task :capacitor-app:packageDebugRenderscript NO-SOURCE
        > Task :capacitor-app:prepareDebugArtProfile UP-TO-DATE
        > Task :capacitor-app:prepareLintJarForPublish UP-TO-DATE
        > Task :capacitor-app:processDebugJavaRes NO-SOURCE
        > Task :capacitor-camera:preBuild UP-TO-DATE
        > Task :capacitor-camera:preDebugBuild UP-TO-DATE
        > Task :capacitor-camera:compileDebugAidl NO-SOURCE
        > Task :capacitor-app:writeDebugAarMetadata
        > Task :capacitor-camera:mergeDebugJniLibFolders
        > Task :capacitor-camera:mergeDebugNativeLibs NO-SOURCE
        > Task :capacitor-camera:stripDebugDebugSymbols NO-SOURCE
        > Task :capacitor-camera:copyDebugJniLibsProjectAndLocalJars
        > Task :capacitor-camera:compileDebugRenderscript NO-SOURCE
        > Task :capacitor-camera:generateDebugBuildConfig
        > Task :capacitor-camera:generateDebugResValues
        > Task :capacitor-camera:generateDebugResources
        > Task :capacitor-camera:packageDebugResources
        > Task :capacitor-camera:parseDebugLocalResources
        > Task :capacitor-camera:javaPreCompileDebug
        > Task :capacitor-camera:mergeDebugShaders
        > Task :capacitor-camera:compileDebugShaders NO-SOURCE
        > Task :capacitor-camera:generateDebugAssets UP-TO-DATE
        > Task :capacitor-android:processDebugManifest
        > Task :capacitor-camera:processDebugManifest
        > Task :capacitor-app:processDebugManifest
        > Task :capacitor-camera:packageDebugAssets
        > Task :capacitor-camera:packageDebugRenderscript NO-SOURCE
        > Task :capacitor-camera:prepareDebugArtProfile UP-TO-DATE
        > Task :capacitor-camera:prepareLintJarForPublish UP-TO-DATE
        > Task :capacitor-camera:processDebugJavaRes NO-SOURCE
        > Task :capacitor-app:mergeDebugJavaResource
        > Task :capacitor-filesystem:preBuild UP-TO-DATE
        > Task :capacitor-camera:writeDebugAarMetadata
        > Task :capacitor-filesystem:preDebugBuild UP-TO-DATE
        > Task :capacitor-camera:mergeDebugJavaResource
        > Task :capacitor-filesystem:compileDebugAidl NO-SOURCE
        > Task :capacitor-filesystem:mergeDebugJniLibFolders
        > Task :capacitor-filesystem:mergeDebugNativeLibs NO-SOURCE
        > Task :capacitor-filesystem:stripDebugDebugSymbols NO-SOURCE
        > Task :capacitor-filesystem:copyDebugJniLibsProjectAndLocalJars
        > Task :capacitor-filesystem:compileDebugRenderscript NO-SOURCE
        > Task :capacitor-filesystem:generateDebugBuildConfig
        > Task :capacitor-filesystem:generateDebugResValues
        > Task :capacitor-filesystem:generateDebugResources
        > Task :capacitor-filesystem:packageDebugResources
        > Task :capacitor-filesystem:parseDebugLocalResources
        > Task :capacitor-filesystem:javaPreCompileDebug
        > Task :capacitor-filesystem:mergeDebugShaders
        > Task :capacitor-filesystem:compileDebugShaders NO-SOURCE
        > Task :capacitor-filesystem:generateDebugAssets UP-TO-DATE
        > Task :capacitor-filesystem:processDebugManifest
        > Task :capacitor-filesystem:packageDebugAssets
        > Task :capacitor-filesystem:packageDebugRenderscript NO-SOURCE
        > Task :capacitor-filesystem:prepareDebugArtProfile UP-TO-DATE
        > Task :capacitor-filesystem:prepareLintJarForPublish UP-TO-DATE
        > Task :capacitor-filesystem:processDebugJavaRes NO-SOURCE
        > Task :capacitor-filesystem:writeDebugAarMetadata
        > Task :capacitor-haptics:preBuild UP-TO-DATE
        > Task :capacitor-filesystem:mergeDebugJavaResource
        > Task :capacitor-haptics:preDebugBuild UP-TO-DATE
        > Task :capacitor-haptics:compileDebugAidl NO-SOURCE
        > Task :capacitor-haptics:mergeDebugJniLibFolders
        > Task :capacitor-haptics:mergeDebugNativeLibs NO-SOURCE
        > Task :capacitor-haptics:stripDebugDebugSymbols NO-SOURCE
        > Task :capacitor-haptics:copyDebugJniLibsProjectAndLocalJars
        > Task :capacitor-haptics:compileDebugRenderscript NO-SOURCE
        > Task :capacitor-haptics:generateDebugBuildConfig
        > Task :capacitor-haptics:generateDebugResValues
        > Task :capacitor-haptics:generateDebugResources
        > Task :capacitor-haptics:packageDebugResources
        > Task :capacitor-haptics:parseDebugLocalResources
        > Task :capacitor-haptics:javaPreCompileDebug
        > Task :capacitor-haptics:mergeDebugShaders
        > Task :capacitor-haptics:compileDebugShaders NO-SOURCE
        > Task :capacitor-haptics:generateDebugAssets UP-TO-DATE
        > Task :capacitor-haptics:processDebugManifest
        > Task :capacitor-haptics:packageDebugAssets
        > Task :capacitor-haptics:packageDebugRenderscript NO-SOURCE
        > Task :capacitor-haptics:prepareDebugArtProfile UP-TO-DATE
        > Task :capacitor-haptics:prepareLintJarForPublish UP-TO-DATE
        > Task :capacitor-haptics:processDebugJavaRes NO-SOURCE
        > Task :capacitor-keyboard:preBuild UP-TO-DATE
        > Task :capacitor-keyboard:preDebugBuild UP-TO-DATE
        > Task :capacitor-haptics:writeDebugAarMetadata
        > Task :capacitor-haptics:mergeDebugJavaResource
        > Task :capacitor-keyboard:compileDebugAidl NO-SOURCE
        > Task :capacitor-keyboard:mergeDebugJniLibFolders
        > Task :capacitor-keyboard:mergeDebugNativeLibs NO-SOURCE
        > Task :capacitor-keyboard:stripDebugDebugSymbols NO-SOURCE
        > Task :capacitor-keyboard:copyDebugJniLibsProjectAndLocalJars
        > Task :capacitor-keyboard:compileDebugRenderscript NO-SOURCE
        > Task :capacitor-keyboard:generateDebugBuildConfig
        > Task :capacitor-keyboard:generateDebugResValues
        > Task :capacitor-keyboard:generateDebugResources
        > Task :capacitor-keyboard:packageDebugResources
        > Task :capacitor-keyboard:parseDebugLocalResources
        > Task :capacitor-keyboard:javaPreCompileDebug
        > Task :capacitor-keyboard:mergeDebugShaders
        > Task :capacitor-keyboard:compileDebugShaders NO-SOURCE
        > Task :capacitor-keyboard:generateDebugAssets UP-TO-DATE
        > Task :capacitor-keyboard:processDebugManifest
        > Task :capacitor-keyboard:packageDebugAssets
        > Task :capacitor-keyboard:packageDebugRenderscript NO-SOURCE
        > Task :capacitor-keyboard:prepareDebugArtProfile UP-TO-DATE
        > Task :capacitor-keyboard:prepareLintJarForPublish UP-TO-DATE
        > Task :capacitor-keyboard:processDebugJavaRes NO-SOURCE
        > Task :capacitor-keyboard:writeDebugAarMetadata
        > Task :capacitor-splash-screen:preBuild UP-TO-DATE
        > Task :capacitor-splash-screen:preDebugBuild UP-TO-DATE
        > Task :capacitor-keyboard:mergeDebugJavaResource
        > Task :capacitor-splash-screen:compileDebugAidl NO-SOURCE
        > Task :capacitor-splash-screen:mergeDebugJniLibFolders
        > Task :capacitor-splash-screen:mergeDebugNativeLibs NO-SOURCE
        > Task :capacitor-splash-screen:stripDebugDebugSymbols NO-SOURCE
        > Task :capacitor-splash-screen:copyDebugJniLibsProjectAndLocalJars
        > Task :capacitor-splash-screen:compileDebugRenderscript NO-SOURCE
        > Task :capacitor-splash-screen:generateDebugBuildConfig
        > Task :capacitor-splash-screen:generateDebugResValues
        > Task :capacitor-splash-screen:generateDebugResources
        > Task :capacitor-splash-screen:packageDebugResources
        > Task :capacitor-splash-screen:parseDebugLocalResources
        > Task :capacitor-splash-screen:javaPreCompileDebug
        > Task :capacitor-splash-screen:mergeDebugShaders
        > Task :capacitor-splash-screen:compileDebugShaders NO-SOURCE
        > Task :capacitor-splash-screen:generateDebugAssets UP-TO-DATE
        > Task :capacitor-splash-screen:processDebugManifest
        > Task :capacitor-splash-screen:packageDebugAssets
        > Task :capacitor-splash-screen:packageDebugRenderscript NO-SOURCE
        > Task :capacitor-splash-screen:prepareDebugArtProfile UP-TO-DATE
        > Task :capacitor-splash-screen:prepareLintJarForPublish UP-TO-DATE
        > Task :capacitor-splash-screen:processDebugJavaRes NO-SOURCE
        > Task :capacitor-status-bar:preBuild UP-TO-DATE
        > Task :capacitor-status-bar:preDebugBuild UP-TO-DATE
        > Task :capacitor-splash-screen:writeDebugAarMetadata
        > Task :capacitor-splash-screen:mergeDebugJavaResource
        > Task :capacitor-status-bar:compileDebugAidl NO-SOURCE
        > Task :capacitor-status-bar:mergeDebugJniLibFolders
        > Task :capacitor-status-bar:mergeDebugNativeLibs NO-SOURCE
        > Task :capacitor-status-bar:stripDebugDebugSymbols NO-SOURCE
        > Task :capacitor-status-bar:copyDebugJniLibsProjectAndLocalJars
        > Task :capacitor-status-bar:compileDebugRenderscript NO-SOURCE
        > Task :capacitor-status-bar:generateDebugBuildConfig
        > Task :capacitor-status-bar:generateDebugResValues
        > Task :capacitor-status-bar:generateDebugResources
        > Task :capacitor-status-bar:packageDebugResources
        > Task :capacitor-status-bar:parseDebugLocalResources
        > Task :capacitor-status-bar:javaPreCompileDebug
        > Task :capacitor-status-bar:mergeDebugShaders
        > Task :capacitor-status-bar:compileDebugShaders NO-SOURCE
        > Task :capacitor-status-bar:generateDebugAssets UP-TO-DATE
        > Task :capacitor-status-bar:processDebugManifest
        > Task :capacitor-status-bar:packageDebugAssets
        > Task :capacitor-status-bar:packageDebugRenderscript NO-SOURCE
        > Task :capacitor-status-bar:prepareDebugArtProfile UP-TO-DATE
        > Task :capacitor-status-bar:prepareLintJarForPublish UP-TO-DATE
        > Task :capacitor-status-bar:processDebugJavaRes NO-SOURCE
        > Task :capacitor-status-bar:mergeDebugJavaResource
        > Task :capacitor-status-bar:writeDebugAarMetadata
        > Task :capacitor-android:generateDebugRFile
        > Task :capacitor-android:mergeDebugJniLibFolders
        > Task :capacitor-android:mergeDebugNativeLibs NO-SOURCE
        > Task :capacitor-android:stripDebugDebugSymbols NO-SOURCE
        > Task :capacitor-android:copyDebugJniLibsProjectAndLocalJars
        > Task :capacitor-android:mergeDebugShaders
        > Task :capacitor-android:compileDebugShaders NO-SOURCE
        > Task :capacitor-android:generateDebugAssets UP-TO-DATE
        > Task :capacitor-android:packageDebugAssets
        > Task :capacitor-android:prepareDebugArtProfile UP-TO-DATE
        > Task :capacitor-android:prepareLintJarForPublish UP-TO-DATE
        > Task :capacitor-android:processDebugJavaRes NO-SOURCE
        > Task :capacitor-cordova-android-plugins:preBuild UP-TO-DATE
        > Task :capacitor-cordova-android-plugins:preDebugBuild UP-TO-DATE
        > Task :capacitor-android:mergeDebugJavaResource
        > Task :capacitor-android:writeDebugAarMetadata
        > Task :capacitor-cordova-android-plugins:compileDebugAidl NO-SOURCE
        > Task :capacitor-cordova-android-plugins:mergeDebugJniLibFolders
        > Task :capacitor-cordova-android-plugins:mergeDebugNativeLibs NO-SOURCE
        > Task :capacitor-cordova-android-plugins:stripDebugDebugSymbols
        NO-SOURCE
        > Task :capacitor-cordova-android-plugins:compileDebugRenderscript
        NO-SOURCE
        > Task
        :capacitor-cordova-android-plugins:copyDebugJniLibsProjectAndLocalJars

        > Task :capacitor-android:compileDebugJavaWithJavac
        Note:
        /Users/andrewfletcher/Apps/FRDC/SAFS/node_modules/@capacitor/android/capacitor/src/main/java/com/getcapacitor/cordova/MockCordovaInterfaceImpl.java
        uses or overrides a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.
        Note: Some input files use unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.

        > Task :capacitor-android:bundleLibCompileToJarDebug
        > Task :capacitor-app:generateDebugRFile
        > Task :capacitor-app:extractDebugAnnotations
        > Task :capacitor-camera:generateDebugRFile
        > Task :capacitor-app:compileDebugJavaWithJavac
        > Task :capacitor-app:mergeDebugGeneratedProguardFiles UP-TO-DATE
        > Task :capacitor-app:mergeDebugConsumerProguardFiles UP-TO-DATE
        > Task :capacitor-app:syncDebugLibJars
        > Task :capacitor-app:bundleDebugLocalLintAar
        > Task :capacitor-camera:extractDebugAnnotations
        > Task :capacitor-camera:compileDebugJavaWithJavac
        > Task :capacitor-camera:mergeDebugGeneratedProguardFiles UP-TO-DATE
        > Task :capacitor-camera:mergeDebugConsumerProguardFiles UP-TO-DATE
        > Task :capacitor-camera:syncDebugLibJars
        > Task :capacitor-camera:bundleDebugLocalLintAar
        > Task :capacitor-filesystem:generateDebugRFile
        > Task :capacitor-haptics:generateDebugRFile
        > Task :capacitor-keyboard:generateDebugRFile
        > Task :capacitor-splash-screen:generateDebugRFile
        > Task :capacitor-filesystem:extractDebugAnnotations
        > Task :capacitor-status-bar:generateDebugRFile
        > Task :capacitor-filesystem:compileDebugJavaWithJavac
        > Task :capacitor-filesystem:mergeDebugGeneratedProguardFiles UP-TO-DATE
        > Task :capacitor-filesystem:mergeDebugConsumerProguardFiles UP-TO-DATE
        > Task :capacitor-filesystem:syncDebugLibJars
        > Task :capacitor-filesystem:bundleDebugLocalLintAar
        > Task :capacitor-haptics:extractDebugAnnotations
        > Task :capacitor-haptics:compileDebugJavaWithJavac
        > Task :capacitor-haptics:mergeDebugGeneratedProguardFiles UP-TO-DATE
        > Task :capacitor-haptics:mergeDebugConsumerProguardFiles UP-TO-DATE
        > Task :capacitor-haptics:syncDebugLibJars
        > Task :capacitor-haptics:bundleDebugLocalLintAar
        > Task :capacitor-keyboard:extractDebugAnnotations
        > Task :capacitor-keyboard:compileDebugJavaWithJavac
        > Task :capacitor-keyboard:mergeDebugGeneratedProguardFiles UP-TO-DATE
        > Task :capacitor-keyboard:mergeDebugConsumerProguardFiles UP-TO-DATE
        > Task :capacitor-keyboard:syncDebugLibJars
        > Task :capacitor-keyboard:bundleDebugLocalLintAar
        > Task :capacitor-splash-screen:extractDebugAnnotations

        > Task :capacitor-splash-screen:compileDebugJavaWithJavac
        Note:
        /Users/andrewfletcher/Apps/FRDC/SAFS/node_modules/@capacitor/splash-screen/android/src/main/java/com/capacitorjs/plugins/splashscreen/SplashScreen.java
        uses or overrides a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.

        > Task :capacitor-splash-screen:mergeDebugGeneratedProguardFiles
        UP-TO-DATE
        > Task :capacitor-splash-screen:mergeDebugConsumerProguardFiles
        UP-TO-DATE
        > Task :capacitor-splash-screen:syncDebugLibJars
        > Task :capacitor-splash-screen:bundleDebugLocalLintAar
        > Task :capacitor-status-bar:extractDebugAnnotations
        > Task :capacitor-status-bar:compileDebugJavaWithJavac
        > Task :capacitor-status-bar:mergeDebugGeneratedProguardFiles UP-TO-DATE
        > Task :capacitor-status-bar:mergeDebugConsumerProguardFiles UP-TO-DATE
        > Task :capacitor-status-bar:syncDebugLibJars
        > Task :capacitor-status-bar:bundleDebugLocalLintAar
        > Task :capacitor-android:extractDebugAnnotations
        > Task :capacitor-android:mergeDebugGeneratedProguardFiles UP-TO-DATE
        > Task :capacitor-android:mergeDebugConsumerProguardFiles
        > Task :capacitor-android:syncDebugLibJars
        > Task :capacitor-android:bundleDebugLocalLintAar
        > Task :capacitor-cordova-android-plugins:generateDebugBuildConfig
        > Task :capacitor-cordova-android-plugins:generateDebugResValues
        > Task :capacitor-cordova-android-plugins:generateDebugResources
        > Task :capacitor-cordova-android-plugins:packageDebugResources
        > Task :capacitor-cordova-android-plugins:parseDebugLocalResources
        > Task :capacitor-cordova-android-plugins:javaPreCompileDebug
        > Task :capacitor-cordova-android-plugins:mergeDebugShaders
        > Task :capacitor-cordova-android-plugins:compileDebugShaders NO-SOURCE
        > Task :capacitor-cordova-android-plugins:generateDebugAssets UP-TO-DATE
        > Task :capacitor-cordova-android-plugins:packageDebugAssets
        > Task :capacitor-cordova-android-plugins:packageDebugRenderscript
        NO-SOURCE
        > Task :capacitor-cordova-android-plugins:prepareDebugArtProfile
        UP-TO-DATE
        > Task :capacitor-cordova-android-plugins:prepareLintJarForPublish
        UP-TO-DATE
        > Task :capacitor-cordova-android-plugins:processDebugManifest
        > Task :capacitor-cordova-android-plugins:processDebugJavaRes NO-SOURCE
        > Task :app:preBuild UP-TO-DATE
        > Task :app:preDebugBuild UP-TO-DATE
        > Task :capacitor-cordova-android-plugins:writeDebugAarMetadata
        > Task :app:compileDebugAidl NO-SOURCE
        > Task :app:compileDebugRenderscript NO-SOURCE
        > Task :app:generateDebugBuildConfig
        > Task :app:javaPreCompileDebug
        > Task :app:generateDebugResValues
        > Task :app:generateDebugResources
        > Task :capacitor-cordova-android-plugins:mergeDebugJavaResource
        > Task :app:createDebugCompatibleScreenManifests
        > Task :app:extractDeepLinksDebug
        > Task :capacitor-cordova-android-plugins:generateDebugRFile
        > Task :capacitor-android:extractDeepLinksDebug
        > Task :capacitor-app:extractDeepLinksDebug
        > Task :capacitor-camera:extractDeepLinksDebug
        > Task :app:checkDebugAarMetadata
        > Task :capacitor-cordova-android-plugins:extractDebugAnnotations
        > Task :app:mergeDebugResources

        > Task :capacitor-cordova-android-plugins:compileDebugJavaWithJavac
        FAILED
        /Users/andrewfletcher/Apps/FRDC/SAFS/android/capacitor-cordova-android-plugins/src/main/java/io/github/pwlin/cordova/plugins/fileopener2/FileProvider.java:28:
        error: package android.support.v4.content does not exist
        public class FileProvider extends
        android.support.v4.content.FileProvider {
        ^
        /Users/andrewfletcher/Apps/FRDC/SAFS/android/capacitor-cordova-android-plugins/src/main/java/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java:119:
        error: cannot find symbol
        path = FileProvider.getUriForFile(context,
        cordova.getActivity().getPackageName() + ".fileOpener2.provider", file);
        ^
        symbol:   method getUriForFile(Context,String,File)
        location: class FileProvider
        /Users/andrewfletcher/Apps/FRDC/SAFS/android/capacitor-cordova-android-plugins/src/main/java/io/github/pwlin/cordova/plugins/fileopener2/FileOpener2.java:127:
        error: cannot find symbol
        Uri path = FileProvider.getUriForFile(context,
        cordova.getActivity().getPackageName() + ".fileOpener2.provider", file);
        ^
        symbol:   method getUriForFile(Context,String,File)
        location: class FileProvider
        Note: Some input files use or override a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.
        Note: Some input files use unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.
        3 errors

        FAILURE: Build failed with an exception.

        * What went wrong:
        Execution failed for task
        ':capacitor-cordova-android-plugins:compileDebugJavaWithJavac'.
        > Compilation failed; see the compiler error output for details.

        * Try:
        > Run with --stacktrace option to get the stack trace.
        > Run with --info or --debug option to get more log output.
        > Run with --scan to get full insights.

        * Get more help at https://help.gradle.org

        BUILD FAILED in 23s
        196 actionable tasks: 163 executed, 33 up-to-date

 

 

INSTALL_PARSE_FAILED_NO_CERTIFICATES

Approaches taken to date include:

  • Invalidate caches and restarting;
  • Build Bundle/APK - trying both options;
  • Install APK and run APK in emulator;
  • Wiping the data in the emulator and cold reboot

 

Keystore

What about if I check the password that's being used for the .keystore file.  You can do this by using bash to go to the directory where your app is located.  Where your {name}.keystore file is located enter the command

keytool -list -v -keystore {name}.keystore

Of course replace {name} with your project.

The response will look something similar to 

Enter keystore password:
Keystore type: PKCS12
Keystore provider: SUN

Your keystore contains 1 entry

Alias name: upload
Creation date: 8 Aug. 2022
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: {details}
Issuer: {details}
Serial number: {number}
Valid from: {date} until: Fri {date}
Certificate fingerprints:
	 SHA1: {fingerprint}
	 SHA256: {fingerprint}
Signature algorithm name: {sha...}
Subject Public Key Algorithm: {let_type}
Version: {number}

Extensions:

#1: ObjectId: {object}
SubjectKeyIdentifier [
   KeyIdentifier [
      /.../
   ]
]


*******************************************
*******************************************

 

Related articles

Andrew Fletcher16 Aug 2022

How to handle a lost KeyStore password in Android?

If you have a situation where either you have forgotten a Keystore password or change of developers and the password wasn't sent across.... what to do?  However, your app lives on and needs to be updated!   Possible solutions grade.properties This is a great starting point....
Andrew Fletcher03 Aug 2022

Android Studio emulator not loading

What I'm seeing in Android Studio when attempting to run the emulator? Launching 'app' on Pixel 5 API 33. Install successfully finished in 153 ms. $ adb shell am start -n "{project}.app.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Timed out waiting for...