android – Using Firebase App Distribution service is resulting in app not installed error-ThrowExceptions

Exception or error:

I’m using the Firebase app distribution service for the Android platform. For automatic distributions, I’ve set up the Gradle file according to the steps mentioned in the docs. The setup and auth are successful. The distribution is also successful. But once I download the app using Firebase’s App Tester app for Android, it results in app not installed error. This is for both: debug as well as release variant.

I tried installing the app after disabling the Google play protect, but the issue remains. Can someone please help me regarding this?

enter image description here

enter image description here

enter image description here

enter image description here

How to solve:

I had the same issue. So I checked the logs and found this when the installation failed:

2019-10-07 10:20:29.941 771-2406/? E/ResolverController: No valid NAT64 prefix (114, <unspecified>/0)
2019-10-07 10:20:30.740 1278-1537/? W/NativeHelper: Failure copying native libraries [errorCode=-113]
2019-10-07 10:20:30.740 1278-1537/? E/PackageInstallerSession: Commit of session 392193568 failed: Failed to extract native libraries, res=-113

So I assumed there had to be something wrong with my APK-file I used. I pressed Build -> Build APK(s) and uploaded that file to Firebase when it was done. I’m not sure I actually went through the build process the first time or just grabbed the apk directly from the build folders. It may have been corrupted or just the wrong one. I recommend just doing the steps one more time and make sure you build the correct one and upload that.

###

Make sure you are providing a signingConfigs to each of your variants.

add to your app’s build.gradle‘s android tag the following code:

signingConfigs {
    config {
        keyAlias '<YOUR_ALIES>'
        keyPassword '<YOUR_KEY_PASSWORD>'
        storeFile file('<YOUR_KEY_PATH>') // Usually use '../keystore.key'
        storePassword '<YOUR_STORE_PASSWORD>'
    }
}

Finally, add the following line into each variant in your buildTypes in your app’s build.gradle :

signingConfig signingConfigs.config

Hope this helps.

###

I ran into this issue with a customer and it turned out that she needed to delete the version of the app that was on her phone to get this to work. (It was a previously installed non Firebase version)

###

This is a random error (apparently).

What worked for me was manually deleting the build folder inside the app module (simply cleaning the project does not delete all the compiled code), build the APK again, re-upload it on FAD and then the APK installed successfully.

###

We ran into this error when having the production build of our application available on the devices in question.

Simply uninstalling the production app worked a charm – we could then install either our test/dev/both applications without any issues.

Leave a Reply

Your email address will not be published. Required fields are marked *